aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Łyszczek <michal.lyszczek@bofc.pl>2021-05-13 11:52:32 +0200
committerMichał Łyszczek <michal.lyszczek@bofc.pl>2021-05-13 11:52:32 +0200
commita91ad1c583e42809b37519f27498f34417a10f5d (patch)
treeb540fb56134a88a9794aef98bd828cf0f19ec45a
parent109a1ca335a4187a487793d2b0e6ea29ffc86f9d (diff)
downloadembedlog-a91ad1c583e42809b37519f27498f34417a10f5d.tar.gz
embedlog-a91ad1c583e42809b37519f27498f34417a10f5d.tar.bz2
embedlog-a91ad1c583e42809b37519f27498f34417a10f5d.zip
tst/test-el-file.c: remove remaining log test file
When tests are run as root, no-write-permission does not apply, and thus embedlog will create files that are not later removed, which results in test error. Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
-rw-r--r--tst/test-el-file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tst/test-el-file.c b/tst/test-el-file.c
index e807c61..0dbada8 100644
--- a/tst/test-el-file.c
+++ b/tst/test-el-file.c
@@ -1545,6 +1545,7 @@ static void file_rotate_dir_no_access(void)
}
unlink(WORKDIR"/embedlog-no-write/log.0");
+ unlink(WORKDIR"/embedlog-no-write/log");
rmdir(WORKDIR"/embedlog-no-write");
}
@@ -1577,6 +1578,7 @@ static void file_rotate_no_access_to_file(void)
}
unlink(WORKDIR"/embedlog-no-write/log.0");
+ unlink(WORKDIR"/embedlog-no-write/log");
rmdir(WORKDIR"/embedlog-no-write");
}