From 7415e8eb053d7f2e7254466ab0acbdab0faf4742 Mon Sep 17 00:00:00 2001 From: Sven Joachim Date: Sun, 2 Dec 2012 22:42:11 +0100 Subject: tests: Don't leave temporary files behind Signed-off-by: Sven Joachim --- tests/connection-test.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') diff --git a/tests/connection-test.c b/tests/connection-test.c index d0113f1..45744a0 100644 --- a/tests/connection-test.c +++ b/tests/connection-test.c @@ -447,6 +447,7 @@ TEST(connection_marshal_demarshal) data.value.h = mkstemp(f); assert(data.value.h >= 0); + unlink(f); marshal_demarshal(&data, (void *) validate_demarshal_h, 8, "h", data.value.h); @@ -480,6 +481,7 @@ TEST(connection_marshal_alot) strcpy(f, "/tmp/weston-tests-XXXXXX"); data.value.h = mkstemp(f); assert(data.value.h >= 0); + unlink(f); marshal_demarshal(&data, (void *) validate_demarshal_h, 8, "h", data.value.h); } -- cgit v1.2.3