summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>2018-10-26 09:35:41 -0700
committerJens Axboe <axboe@kernel.dk>2018-10-26 10:24:21 -0600
commite37155efe2b60fe0acc5051e774d2eb49e4b7ca7 (patch)
tree1b75ab56cd8232e57ac09fffdc49fe34d80e6577 /Makefile
parentb8b0e1eea7780a02ff67f0caeba446cc403f1b37 (diff)
unittests: add unittest suite for lib/memalign.c
Add test cases for lib/memalign.c as an example of unittest. A workaround code to emulate smalloc()/sfree() was needed since 3114b675fd("fio: enable cross-thread overlap checking with processes") introduced dependency on smalloc()/sfree() which has dependency on fio code. Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 461d784..9f27ff1 100644
--- a/Makefile
+++ b/Makefile
@@ -302,7 +302,8 @@ PROGS += $(T_PROGS)
ifdef CONFIG_HAVE_CUNIT
UT_OBJS = unittests/unittest.o
-UT_TARGET_OBJS =
+UT_OBJS += unittests/lib/memalign.o
+UT_TARGET_OBJS = lib/memalign.o
UT_PROGS = unittests/unittest
else
UT_OBJS =