diff options
author | Chris Wilson <chris+github@qwirx.com> | 2006-09-01 08:05:29 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2006-09-01 08:05:29 +0000 |
commit | 164c29cecef282e61b60add7c39b0801514f829e (patch) | |
tree | f02e7a04d619d7bf26b52f0a32fddb65daf3e6ee /test/backupstore/testbackupstore.cpp | |
parent | 6b19bc3aac1dcb32ed4db56252bcd6110568a647 (diff) |
(refs #3)
Close before unlink
Check that unlink succeeds
Diffstat (limited to 'test/backupstore/testbackupstore.cpp')
-rw-r--r-- | test/backupstore/testbackupstore.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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) |