diff --git a/.travis.yml b/.travis.yml index 0a39330c..e5dd6d2b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,5 +22,5 @@ addons: script: - mkdir tests - cd tests - - ../src/test/tpkg/run-all.sh -# - ../src/test/tpkg/run-one.sh 225-stub-only-valgrind-checks +# - ../src/test/tpkg/run-all.sh + - ../src/test/tpkg/run-one.sh 275-server-capabilities.tpkg -V diff --git a/src/stub.c b/src/stub.c index 2547d10f..c3b16bb2 100644 --- a/src/stub.c +++ b/src/stub.c @@ -455,7 +455,8 @@ tcp_connect(getdns_upstream *upstream, getdns_transport_list_t transport) GETDNS_LOG_UPSTREAM_STATS, GETDNS_LOG_WARNING, "%-40s : Upstream : Could not setup TCP TFO\n", upstream->addr_str); - +# else + (void)transport; # endif/* HAVE_DECL_TCP_FASTOPEN*/ # endif /* HAVE_DECL_TCP_FASTOPEN_CONNECT */ #endif /* USE_OSX_TCP_FASTOPEN */ diff --git a/src/test/tpkg/275-server-capabilities.tpkg/275-server-capabilities.test b/src/test/tpkg/275-server-capabilities.tpkg/275-server-capabilities.test index daf55c78..dcb43eb8 100644 --- a/src/test/tpkg/275-server-capabilities.tpkg/275-server-capabilities.test +++ b/src/test/tpkg/275-server-capabilities.tpkg/275-server-capabilities.test @@ -15,9 +15,9 @@ cmake . && make && valgrind -v --log-file=valgrind.log --leak-check=full --error ${GETDNS_STUB_QUERY} -s -t 1000 @${LOCALHOST}:$PORT TXT cancel. +return_call_reporting 2>&1 > time_out - ${GETDNS_STUB_QUERY} -s @${LOCALHOST}:$PORT TXT test +return_call_reporting 2>&1 > tcp_out + ${GETDNS_STUB_QUERY} -s @${LOCALHOST}:$PORT TXT test. +return_call_reporting 2>&1 > tcp_out - ${GETDNS_STUB_QUERY} -s -U @${LOCALHOST}:$PORT2 TXT test +return_call_reporting 2>&1 > udp_out + ${GETDNS_STUB_QUERY} -s -U @${LOCALHOST}:$PORT2 TXT test. +return_call_reporting 2>&1 > udp_out ${GETDNS_STUB_QUERY} -s -q @${LOCALHOST}:$PORT TXT quit. )