Skip to content

Commit fe8fd04

Browse files
committed
test_store: unlink test files during teardown also
Fixes: #249
1 parent 8ce4b4f commit fe8fd04

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test_store.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,9 @@ static void drop_teardown_test(struct clip_store *cs) {
146146
int ret = cs_destroy(cs);
147147
assert(ret == 0);
148148
close(snip_fd);
149+
shm_unlink(TEST_SNIP_FILE);
149150
close(content_dir_fd);
151+
remove_test_content_dir(TEST_CONTENT_DIR);
150152
}
151153

152154
static void add_ten_snips(struct clip_store *cs) {

0 commit comments

Comments
 (0)