svn commit: r229001 - head/tools/regression/sbin/dhclient
Jean-Sebastien Pedron
dumbbell at FreeBSD.org
Fri Dec 30 14:41:47 UTC 2011
Author: dumbbell
Date: Fri Dec 30 14:41:47 2011
New Revision: 229001
URL: http://svn.freebsd.org/changeset/base/229001
Log:
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)
Modified:
head/tools/regression/sbin/dhclient/fake.c
Modified: head/tools/regression/sbin/dhclient/fake.c
==============================================================================
--- head/tools/regression/sbin/dhclient/fake.c Fri Dec 30 14:33:08 2011 (r229000)
+++ head/tools/regression/sbin/dhclient/fake.c Fri Dec 30 14:41:47 2011 (r229001)
@@ -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
More information about the svn-src-all
mailing list