diff options
author | Sven Joachim <svenjoac@gmx.de> | 2012-12-02 22:42:11 +0100 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2012-12-03 09:55:58 -0500 |
commit | 7415e8eb053d7f2e7254466ab0acbdab0faf4742 (patch) | |
tree | fcad9bb7486415818284cda80d8d8a08c4a0e709 /tests | |
parent | e8ce68392016bfdbbdf407dfa240f5644638ff45 (diff) |
tests: Don't leave temporary files behind
Signed-off-by: Sven Joachim <svenjoac@gmx.de>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/connection-test.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); } |