summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordumbbell <dumbbell@FreeBSD.org>2011-12-30 14:41:47 +0000
committerdumbbell <dumbbell@FreeBSD.org>2011-12-30 14:41:47 +0000
commit5a69a758b02491b06cdef4cd43b38e76661f42f6 (patch)
tree0024bfdc8b6c3e17ed7188932819b7efd037940d
parent5f51b7b385ca5b628c4c361761217aa1fe34b412 (diff)
downloadFreeBSD-src-5a69a758b02491b06cdef4cd43b38e76661f42f6.zip
FreeBSD-src-5a69a758b02491b06cdef4cd43b38e76661f42f6.tar.gz
Adapt testsuite following change in Domain Search error handling
In this testsuite, warning() and error() have the same behaviour. PR: bin/163431 Sponsored by: Yakaz (http://www.yakaz.com)
-rw-r--r--tools/regression/sbin/dhclient/fake.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/regression/sbin/dhclient/fake.c b/tools/regression/sbin/dhclient/fake.c
index 91d57b6..c204d49 100644
--- a/tools/regression/sbin/dhclient/fake.c
+++ b/tools/regression/sbin/dhclient/fake.c
@@ -32,7 +32,11 @@ warning(char *fmt, ...)
va_end(ap);
fprintf(stderr, "\n");
- return ret;
+ /*
+ * The original warning() would return "ret" here. We do this to
+ * check warnings explicitely.
+ */
+ longjmp(env, 1);
}
int
OpenPOWER on IntegriCloud