From 8297b3faf8606762b176d57637f2ec5f84601e0d Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sat, 4 Dec 2021 21:12:06 +0100 Subject: Fix: unit test and sample program Windows build Now that there is a wrapper for main() on Windows, all executable programs must use a common, cannonical signature for main(). Furthermore, the Windows version of the epoch test needs wrappers for setenv/unsetenv. Signed-off-by: David Oberhollenzer --- tests/libfstree/Makemodule.am | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/libfstree/Makemodule.am') diff --git a/tests/libfstree/Makemodule.am b/tests/libfstree/Makemodule.am index 8248f5c..022b8e4 100644 --- a/tests/libfstree/Makemodule.am +++ b/tests/libfstree/Makemodule.am @@ -2,7 +2,7 @@ FSTDATADIR=$(top_srcdir)/tests/libfstree test_canonicalize_name_SOURCES = tests/libfstree/canonicalize_name.c test_canonicalize_name_SOURCES += tests/test.h -test_canonicalize_name_LDADD = libfstree.a +test_canonicalize_name_LDADD = libfstree.a libcompat.a test_mknode_simple_SOURCES = tests/libfstree/mknode_simple.c tests/test.h test_mknode_simple_LDADD = libfstree.a libcompat.a @@ -50,10 +50,12 @@ test_fstree_init_LDADD = libfstree.a libfstream.a libcompat.a test_filename_sane_SOURCES = tests/libfstree/filename_sane.c test_filename_sane_SOURCES += lib/fstree/filename_sane.c +test_filename_sane_LDADD = libcompat.a test_filename_sane_w32_SOURCES = tests/libfstree/filename_sane.c test_filename_sane_w32_SOURCES += lib/fstree/filename_sane.c test_filename_sane_w32_CPPFLAGS = $(AM_CPPFLAGS) -DTEST_WIN32=1 +test_filename_sane_w32_LDADD = libcompat.a fstree_fuzz_SOURCES = tests/libfstree/fstree_fuzz.c fstree_fuzz_LDADD = libfstree.a libfstream.a libcompat.a -- cgit v1.2.3