aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Dunwoodie <ncon@noconroy.net>2021-04-23 15:34:54 +1000
committerMatt Dunwoodie <ncon@noconroy.net>2021-04-23 15:35:19 +1000
commit9e98ee86f8c86ab732d646b33909a57d46695c95 (patch)
treedd208a41980281390fa2b3ee0bccd6914f0f6eca
parentif_wg: zero out remaining mallocs (diff)
downloadwireguard-freebsd-9e98ee86f8c86ab732d646b33909a57d46695c95.tar.xz
wireguard-freebsd-9e98ee86f8c86ab732d646b33909a57d46695c95.zip
selftests: capitalise fail messages for readability
Signed-off-by: Matt Dunwoodie <ncon@noconroy.net>
-rw-r--r--src/selftest/cookie.c6
-rw-r--r--src/selftest/counter.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/selftest/cookie.c b/src/selftest/cookie.c
index d5778b7..9926dc5 100644
--- a/src/selftest/cookie.c
+++ b/src/selftest/cookie.c
@@ -6,11 +6,11 @@
#define MESSAGE_LEN 64
#define T_FAILED_ITER(test) do { \
- printf("%s %s: fail, iter: %d\n", __func__, test, i); \
+ printf("%s %s: FAIL, iter: %d\n", __func__, test, i); \
goto cleanup; \
} while (0)
#define T_FAILED(test) do { \
- printf("%s %s: fail\n", __func__, test); \
+ printf("%s %s: FAIL\n", __func__, test); \
goto cleanup; \
} while (0)
#define T_PASSED printf("%s: pass\n", __func__)
@@ -160,7 +160,7 @@ cookie_ratelimit_gc_test(void)
tsleep_sbt(&rl, PWAIT, "rl", ELEMENT_TIMEOUT * SBT_1S * 2 , 0, 0);
if (rl.rl_table_num != 0)
- T_FAILED("gc failed");
+ T_FAILED("gc");
T_PASSED;
cleanup:
ratelimit_deinit(&rl);
diff --git a/src/selftest/counter.c b/src/selftest/counter.c
index 481122d..2c5d3bc 100644
--- a/src/selftest/counter.c
+++ b/src/selftest/counter.c
@@ -11,7 +11,7 @@
} while (0)
#define T(num, v, e) do { \
if (noise_keypair_nonce_check(&kp, v) != e) { \
- printf("%s, test %d: fail\n", __func__, num); \
+ printf("%s, test %d: FAIL\n", __func__, num); \
return; \
} \
} while (0)