diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-01-12 12:01:07 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-01-12 12:01:07 -0500 |
commit | a9c9fc392bf2c3803251e5f63c944cd221a1ca67 (patch) | |
tree | f6074e70120eda712b96027835c9c799a561e4a4 /tests/bfstd.c | |
parent | 67eebd6fd514ede9e10cd4639b8d0cce690513f4 (diff) | |
download | bfs-a9c9fc392bf2c3803251e5f63c944cd221a1ca67.tar.xz |
tests: Merge unit test executables into one
Diffstat (limited to 'tests/bfstd.c')
-rw-r--r-- | tests/bfstd.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/bfstd.c b/tests/bfstd.c index c386279..d385c6b 100644 --- a/tests/bfstd.c +++ b/tests/bfstd.c @@ -1,6 +1,7 @@ // Copyright © Tavian Barnes <tavianator@tavianator.com> // SPDX-License-Identifier: 0BSD +#include "tests.h" #include "../src/bfstd.h" #include "../src/config.h" #include "../src/diag.h" @@ -34,7 +35,7 @@ static void check_wordesc(const char *str, const char *exp, enum wesc_flags flag bfs_verify(strcmp(buf, exp) == 0, "wordesc(%s) == %s (!= %s)", str, buf, exp); } -int main(void) { +bool check_bfstd(void) { // Try to set a UTF-8 locale if (!setlocale(LC_ALL, "C.UTF-8")) { setlocale(LC_ALL, ""); @@ -69,5 +70,5 @@ int main(void) { check_wordesc("\xF0\x9F\x98\x80", "\xF0\x9F\x98\x80", WESC_SHELL | WESC_TTY); } - return EXIT_SUCCESS; + return true; } |