unit-tests: Show how many test vectors have failed on test failure
authorMartin Willi <martin@revosec.ch>
Tue, 5 Nov 2013 09:13:36 +0000 (10:13 +0100)
committerMartin Willi <martin@revosec.ch>
Wed, 6 Nov 2013 09:31:01 +0000 (10:31 +0100)
src/libstrongswan/tests/suites/test_vectors.c

index f2817d3..242ac9d 100644 (file)
@@ -21,7 +21,8 @@
 
 START_TEST(test_vectors)
 {
-       fail_if(lib->crypto->get_test_vector_failures(lib->crypto));
+       u_int failed = lib->crypto->get_test_vector_failures(lib->crypto);
+       fail_if(failed > 0, "%u test vectors failed", failed);
 }
 END_TEST