From 164c29cecef282e61b60add7c39b0801514f829e Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 1 Sep 2006 08:05:29 +0000 Subject: (refs #3) Close before unlink Check that unlink succeeds --- test/backupstore/testbackupstore.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/backupstore/testbackupstore.cpp b/test/backupstore/testbackupstore.cpp index f89d2ff7..cf85b1ed 100644 --- a/test/backupstore/testbackupstore.cpp +++ b/test/backupstore/testbackupstore.cpp @@ -425,7 +425,8 @@ void test_test_file(int t, IOStream &rStream) } free(data); - unlink("testfiles/test_download"); + in.Close(); + TEST_THAT(unlink("testfiles/test_download") == 0); } void test_everything_deleted(BackupProtocolClient &protocol, int64_t DirID) -- cgit v1.2.3