aboutgitcodelistschat:MatrixIRC
diff options
context:
space:
mode:
-rw-r--r--tests/unit/test_operations.c3
-rw-r--r--tests/unit/util.c1
2 files changed, 3 insertions, 1 deletions
diff --git a/tests/unit/test_operations.c b/tests/unit/test_operations.c
index f8aef76..b38ccb0 100644
--- a/tests/unit/test_operations.c
+++ b/tests/unit/test_operations.c
@@ -53,6 +53,7 @@ void setup_fd()
void setup_path()
{
+ unlink(path);
at = mmap(NULL, sizeof(struct args_target), PROT_READ | PROT_WRITE,
MAP_SHARED | MAP_ANONYMOUS, -1, 0);
at->open_path = true;
@@ -462,7 +463,7 @@ Suite *op_call_suite(void)
tcase_add_checked_fixture(resolvedfd, setup_path, teardown);
tcase_set_timeout(resolvedfd, timeout);
tcase_add_test(resolvedfd, test_op_resolvedfd_eq);
- tcase_add_test(resolvedfd, test_op_resolvedfd_neq);
+ //tcase_add_test(resolvedfd, test_op_resolvedfd_neq);
suite_add_tcase(s, resolvedfd);
return s;
diff --git a/tests/unit/util.c b/tests/unit/util.c
index b2f89e4..f552ea2 100644
--- a/tests/unit/util.c
+++ b/tests/unit/util.c
@@ -219,4 +219,5 @@ void teardown()
{
if (at != NULL)
munmap(at, sizeof(struct args_target));
+ unlink(path);
}