Project

General

Profile

Bug #3367

Updated by Davide Pesavento about 8 years ago

The update environment on Travis-CI does not have any support for IPv6... not even on loopback interfaces. Even for localhost communication. 

 This results resulted in several failures in test cases, e.g. from https://travis-ci.org/named-data/NFD/builds/105011116 

 ``` 
 Entering test suite "TestTcpTransport" 
 Entering test case "StaticPropertiesLocalIpv4" 
 1453846242.616016 INFO: [TcpTransport] [id=0,local=tcp4://127.0.0.1:33324,remote=tcp4://127.0.0.1:7070] Creating transport 
 Leaving test case "StaticPropertiesLocalIpv4" 
 Entering test case "StaticPropertiesLocalIpv6" 
 unknown location(0): fatal error in "StaticPropertiesLocalIpv6": std::runtime_error: bind: Cannot assign requested address 
 Leaving test case "StaticPropertiesLocalIpv6" 

 ... ... 

 Entering test suite "TestUnicastUdpTransport" 
 Entering test case "StaticPropertiesLocalIpv4" 
 1453846242.621958 INFO: [UnicastUdpTransport] [id=0,local=udp4://127.0.0.1:36982,remote=udp4://127.0.0.1:7070] Creating transport 
 Leaving test case "StaticPropertiesLocalIpv4" 
 Entering test case "StaticPropertiesLocalIpv6" 
 unknown location(0): fatal error in "StaticPropertiesLocalIpv6": std::runtime_error: connect: Network is unreachable 
 Leaving test case "StaticPropertiesLocalIpv6" 
 ``` see https://travis-ci.org/named-data/NFD/builds/98260575 for more detail. 

 We should add guards to skip the affected tests when IPv6 is not available at all.

Back