summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-05-27 15:59:18 -0300
committerEuAndreh <eu@euandre.org>2024-05-27 15:59:18 -0300
commit5a4cac63cef0a74488382eedb1e161c7d8277c64 (patch)
tree384f198c70a09a1c5a60e04e0c314deb65149232 /tests
parentMakefile: update "siphash" to new "siphashbs" name (diff)
downloadpindaiba-5a4cac63cef0a74488382eedb1e161c7d8277c64.tar.gz
pindaiba-5a4cac63cef0a74488382eedb1e161c7d8277c64.tar.xz
src/util.h: Add EXIT_USAGE
Diffstat (limited to 'tests')
-rw-r--r--tests/util.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/util.c b/tests/util.c
index 662ccc8..bda7606 100644
--- a/tests/util.c
+++ b/tests/util.c
@@ -6,6 +6,18 @@
#include "slurp.h"
+static void
+test_EXIT_USAGE(void) {
+ test_start("EXIT_USAGE");
+
+ {
+ testing("it is different that EXIT_SUCCESS and EXIT_FAILURE");
+ assert(EXIT_USAGE != EXIT_SUCCESS);
+ assert(EXIT_USAGE != EXIT_FAILURE);
+ test_ok();
+ }
+}
+
static int
test_slurp(void) {
int rc = -1;
@@ -99,6 +111,8 @@ int
main(void) {
int rc = -1;
+ test_EXIT_USAGE();
+
if (test_slurp()) {
logerr("test_slurp()");
goto out;