]> granicus.if.org Git - p11-kit/commitdiff
common: Abort test cases when one fails
authorStef Walter <stef@thewalter.net>
Thu, 13 Jun 2013 15:39:44 +0000 (17:39 +0200)
committerStef Walter <stef@thewalter.net>
Thu, 13 Jun 2013 15:39:44 +0000 (17:39 +0200)
common/test.c

index 8866e48aa57456c4534193816d9a0669f504f17e..122e78a61bcd8e844bb931fb19c418c23b1112a5 100644 (file)
@@ -121,6 +121,8 @@ p11_test_fail (const char *filename,
        printf ("# in %s() at %s:%d\n", function, filename, line);
 
        free (output);
+
+       longjmp (gl.jump, 1);
 }
 
 static void