mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-31 22:25:25 -04:00
tests: Don't leave temporary files behind
Signed-off-by: Sven Joachim <svenjoac@gmx.de>
This commit is contained in:
parent
e8ce683920
commit
7415e8eb05
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue