summaryrefslogtreecommitdiffstats
path: root/tests/alloc.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-01-12 12:01:07 -0500
committerTavian Barnes <tavianator@tavianator.com>2024-01-12 12:01:07 -0500
commita9c9fc392bf2c3803251e5f63c944cd221a1ca67 (patch)
treef6074e70120eda712b96027835c9c799a561e4a4 /tests/alloc.c
parent67eebd6fd514ede9e10cd4639b8d0cce690513f4 (diff)
downloadbfs-a9c9fc392bf2c3803251e5f63c944cd221a1ca67.tar.xz
tests: Merge unit test executables into one
Diffstat (limited to 'tests/alloc.c')
-rw-r--r--tests/alloc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/alloc.c b/tests/alloc.c
index 37b70bf..e14f131 100644
--- a/tests/alloc.c
+++ b/tests/alloc.c
@@ -1,13 +1,14 @@
// Copyright © Tavian Barnes <tavianator@tavianator.com>
// SPDX-License-Identifier: 0BSD
+#include "tests.h"
#include "../src/alloc.h"
#include "../src/diag.h"
#include <errno.h>
#include <stdlib.h>
#include <stdint.h>
-int main(void) {
+bool check_alloc(void) {
// Check sizeof_flex()
struct flexible {
alignas(64) int foo[8];
@@ -44,6 +45,5 @@ int main(void) {
}
varena_destroy(&varena);
-
- return EXIT_SUCCESS;
+ return true;
}