summaryrefslogtreecommitdiffstats
path: root/tests/update2.c
diff options
context:
space:
mode:
authorUlf Hermann <[email protected]>2017-04-11 16:31:27 +0200
committerUlf Hermann <[email protected]>2017-05-08 09:47:06 +0000
commit14192f5767b3388d9f6a1cdc8cadfb047b7a1f6a (patch)
treedfe8fa844fb85a22f7d9d4e09f3a1d8e2e8103bc /tests/update2.c
parent9f59b055f56ccebaa3d272d153c74fb889958a8a (diff)
Close files before renaming or unlinking them
On windows we cannot rename or unlink open files. Change-Id: Ieae8712266a3e65217580d4936219767c5f26f21 Reviewed-by: Christian Kandeler <[email protected]>
Diffstat (limited to 'tests/update2.c')
-rw-r--r--tests/update2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/update2.c b/tests/update2.c
index 3e228796..1dcff3fc 100644
--- a/tests/update2.c
+++ b/tests/update2.c
@@ -144,6 +144,7 @@ main (int argc, char *argv[] __attribute__ ((unused)))
exit (1);
}
+ close (fd);
unlink (fname);
return 0;