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
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to