diff options
author | Michał Łyszczek <michal.lyszczek@bofc.pl> | 2018-01-26 12:56:26 +0100 |
---|---|---|
committer | Michał Łyszczek <michal.lyszczek@bofc.pl> | 2018-01-26 13:01:48 +0100 |
commit | cd8fdd12c3274e543e49fbe88065a9a20575b764 (patch) | |
tree | 188ec822368b598f66f540bda7a979917939577a | |
parent | b4f7aa5c75db692c8268022d8766adb6ebf20f54 (diff) | |
download | embedlog-cd8fdd12c3274e543e49fbe88065a9a20575b764.tar.gz embedlog-cd8fdd12c3274e543e49fbe88065a9a20575b764.tar.bz2 embedlog-cd8fdd12c3274e543e49fbe88065a9a20575b764.zip |
add: disable file tests when --disable-out-file
-rw-r--r-- | tst/test-el-file.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tst/test-el-file.c b/tst/test-el-file.c index b907acc..03ef4e7 100644 --- a/tst/test-el-file.c +++ b/tst/test-el-file.c @@ -14,6 +14,8 @@ ========================================================================== */ +#include "config.h" + #include <dirent.h> #include <errno.h> #include <fcntl.h> @@ -1097,6 +1099,7 @@ static void file_rotate_fail(void) void el_file_test_group(void) { +#if ENABLE_OUT_FILE mkdir(WORKDIR, 0755); mt_run(file_print_without_init); @@ -1153,4 +1156,5 @@ void el_file_test_group(void) mt_run(file_rotate_fail); rmdir(WORKDIR); +#endif } |