aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/data/test2413
-rwxr-xr-xtests/runtests.pl1
-rw-r--r--tests/server/resolve.c9
3 files changed, 9 insertions, 4 deletions
diff --git a/tests/data/test241 b/tests/data/test241
index e1a1ebba2..161c6263f 100644
--- a/tests/data/test241
+++ b/tests/data/test241
@@ -26,6 +26,9 @@ HTTP-IPv6 GET (using ip6-localhost)
<command>
-g "http://ip6-localhost:%HTTP6PORT/241"
</command>
+<precheck>
+./server/resolve --ipv6 ip6-localhost
+</precheck>
</client>
#
diff --git a/tests/runtests.pl b/tests/runtests.pl
index eec07406f..0ba5d8bc1 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -1058,6 +1058,7 @@ sub singletest {
chomp $why;
}
}
+ print "prechecked $cmd\n" if($verbose);
}
if($why) {
diff --git a/tests/server/resolve.c b/tests/server/resolve.c
index e1b75e359..84b369e6b 100644
--- a/tests/server/resolve.c
+++ b/tests/server/resolve.c
@@ -125,8 +125,8 @@ int main(int argc, char *argv[])
he = gethostbyname(host);
- printf("Resolve '%s' %s\n",
- host, he?"SUCCESSFUL":"FAILED");
+ if(!he)
+ printf("Resolving '%s' FAILED\n", host);
return he?0:1;
}
@@ -143,8 +143,9 @@ int main(int argc, char *argv[])
hints.ai_flags = AI_CANONNAME;
rc = (getaddrinfo)(host, "80", &hints, &ai);
- printf("Resolve '%s' %s\n",
- host, !rc?"SUCCESSFUL":"FAILED");
+ if(rc)
+ printf("Resolving '%s' FAILED\n", host);
+
return !rc?0:1;
}
#endif