summaryrefslogtreecommitdiff
path: root/tests/abi.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/abi.c')
-rw-r--r--tests/abi.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/tests/abi.c b/tests/abi.c
index 1601e0a..ce1a9aa 100644
--- a/tests/abi.c
+++ b/tests/abi.c
@@ -7,19 +7,17 @@
#include "config.h"
#include "sqfs/compressor.h"
-
-#include <assert.h>
-#include <stdlib.h>
+#include "test.h"
int main(void)
{
sqfs_compressor_config_t cfg;
- assert(sizeof(cfg.opt.gzip) == sizeof(cfg.opt));
- assert(sizeof(cfg.opt.zstd) == sizeof(cfg.opt));
- assert(sizeof(cfg.opt.lzo) == sizeof(cfg.opt));
- assert(sizeof(cfg.opt.xz) == sizeof(cfg.opt));
- assert(sizeof(cfg.opt.padd0) == sizeof(cfg.opt));
+ TEST_EQUAL_UI(sizeof(cfg.opt.gzip), sizeof(cfg.opt));
+ TEST_EQUAL_UI(sizeof(cfg.opt.zstd), sizeof(cfg.opt));
+ TEST_EQUAL_UI(sizeof(cfg.opt.lzo), sizeof(cfg.opt));
+ TEST_EQUAL_UI(sizeof(cfg.opt.xz), sizeof(cfg.opt));
+ TEST_EQUAL_UI(sizeof(cfg.opt.padd0), sizeof(cfg.opt));
return EXIT_SUCCESS;
}