Skip to content

Commit

Permalink
Remove debugging code to list files during test_multiple_uploads
Browse files Browse the repository at this point in the history
Revert "Try listing files to help debug random failures of test_multiple_uploads()."

This reverts commit e302ded.
  • Loading branch information
qris committed Jul 23, 2017
1 parent 5148e0f commit 29a5587
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions test/backupstore/testbackupstore.cpp
Expand Up @@ -1362,22 +1362,12 @@ 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
Expand Down Expand Up @@ -1405,11 +1395,6 @@ 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));

Expand All @@ -1424,11 +1409,6 @@ 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
{
Expand All @@ -1452,22 +1432,13 @@ 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();

std::auto_ptr<BackupStoreAccountDatabase> apAccounts(
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,
Expand Down

0 comments on commit 29a5587

Please sign in to comment.