Browse Source

more output in debug build

make compare_testvector() a bit more verbose in debug build
Steffen Jaeckel 8 years ago
parent
commit
c0b7c8dd67
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/misc/compare_testvector.c

+ 4 - 0
src/misc/compare_testvector.c

@@ -73,6 +73,10 @@ int compare_testvector(const void* is, const unsigned long is_len, const void* s
       fprintf(stderr, "Testvector #%i of %s failed:\n", which, what);
       _print_hex("SHOULD", should, should_len);
       _print_hex("IS    ", is, is_len);
+#if LTC_TEST_DBG > 1
+   } else {
+      fprintf(stderr, "Testvector #%i of %s passed!\n", which, what);
+#endif
    }
 #else
    LTC_UNUSED_PARAM(which);