Package: ola / 0.9.1-1.1

include_lo_when_looking_for_network_interface.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Description: Include lo interface lookup for InterfacePicker.
 Package tests fails when running in pbuilder because InterfacePickerTest does not find
 any suitable network interface.
 pbuilder creates a new network namespace (using "unshare -n" from util-linux) and runs
 the build with just lo being available.
 Removing false flag passed to picker->GetInterfaces() allows to include lo in search,
 thus allowing tests to complete.
Author: Jean Baptiste Favre <debian@jbfavre.org>
Last-Update: 2014-11-21
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/common/network/InterfacePickerTest.cpp
+++ b/common/network/InterfacePickerTest.cpp
@@ -63,7 +63,7 @@ CPPUNIT_TEST_SUITE_REGISTRATION(Interfac
  */
 void InterfacePickerTest::testGetInterfaces() {
   auto_ptr<InterfacePicker> picker(InterfacePicker::NewPicker());
-  vector<Interface> interfaces = picker->GetInterfaces(false);
+  vector<Interface> interfaces = picker->GetInterfaces(true);
   OLA_ASSERT_TRUE(interfaces.size() > 0);
 
   vector<Interface>::iterator iter;