tests: Don't leave temporary files behind

Signed-off-by: Sven Joachim <svenjoac@gmx.de>
This commit is contained in:
Sven Joachim 2012-12-02 22:42:11 +01:00 committed by Kristian Høgsberg
parent e8ce683920
commit 7415e8eb05

View file

@ -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);
}