summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2015-12-27 18:47:25 +0000
committerChris Wilson <chris+github@qwirx.com>2015-12-27 18:47:25 +0000
commite302ded5b7d40fe88d65808564f4db9df2a6f878 (patch)
tree2e3a13286c55c4e6b4bce2d5b433499d9f0a2d3c /test
parent863e811335dd84c0c129a0c5dca4324b399538e0 (diff)
Try listing files to help debug random failures of test_multiple_uploads().
Diffstat (limited to 'test')
-rw-r--r--test/backupstore/testbackupstore.cpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/test/backupstore/testbackupstore.cpp b/test/backupstore/testbackupstore.cpp
index efdef230..6441d66c 100644
--- a/test/backupstore/testbackupstore.cpp
+++ b/test/backupstore/testbackupstore.cpp
@@ -1362,12 +1362,22 @@ bool test_multiple_uploads()
TEST_THAT(check_num_files(UPLOAD_NUM - 4, 3, 2, 1));
}
+#ifdef _MSC_VER
+ BOX_TRACE("1");
+ system("dir testfiles\\0_0\\backup\\01234567");
+#endif
+
apProtocol->QueryFinished();
protocolReadOnly.QueryFinished();
TEST_THAT(run_housekeeping_and_check_account());
apProtocol = connect_and_login(context);
protocolReadOnly.Reopen();
+#ifdef _MSC_VER
+ BOX_TRACE("2");
+ system("dir testfiles\\0_0\\backup\\01234567");
+#endif
+
// Check that the block index can be obtained by name even though it's been deleted
{
// Fetch the raw object
@@ -1395,6 +1405,11 @@ bool test_multiple_uploads()
test_test_file(t, *filestream);
}
+#ifdef _MSC_VER
+ BOX_TRACE("3");
+ system("dir testfiles\\0_0\\backup\\01234567");
+#endif
+
{
StreamableMemBlock attrtest(attr3, sizeof(attr3));
@@ -1409,6 +1424,11 @@ bool test_multiple_uploads()
// sleep to ensure that the timestamp on the file will change
::safe_sleep(1);
+#ifdef _MSC_VER
+ BOX_TRACE("4");
+ system("dir testfiles\\0_0\\backup\\01234567");
+#endif
+
// Check diffing and rsync like stuff...
// Build a modified file
{
@@ -1432,6 +1452,11 @@ bool test_multiple_uploads()
// ourselves) and check that it doesn't change the numbers
// of files
+#ifdef _MSC_VER
+ BOX_TRACE("5");
+ system("dir testfiles\\0_0\\backup\\01234567");
+#endif
+
apProtocol->QueryFinished();
protocolReadOnly.QueryFinished();
@@ -1439,6 +1464,10 @@ bool test_multiple_uploads()
BackupStoreAccountDatabase::Read("testfiles/accounts.txt"));
BackupStoreAccountDatabase::Entry account =
apAccounts->GetEntry(0x1234567);
+#ifdef _MSC_VER
+ BOX_TRACE("6");
+ system("dir testfiles\\0_0\\backup\\01234567");
+#endif
TEST_EQUAL(0, run_housekeeping(account));
// Also check that bbstoreaccounts doesn't change anything,