From 0d4c4ace97095fd37ea11ac289d02012f6e5f820 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sun, 18 Nov 2012 16:34:10 +0000 Subject: Fix testbackupstore: don't keep using a reference to a protocol object that's been disposed (Windows only). --- test/backupstore/testbackupstore.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/backupstore/testbackupstore.cpp b/test/backupstore/testbackupstore.cpp index 19fbc35f..661973e0 100644 --- a/test/backupstore/testbackupstore.cpp +++ b/test/backupstore/testbackupstore.cpp @@ -1040,7 +1040,7 @@ int test_server(const char *hostname) TEST_THAT(loginConf->GetClientStoreMarker() == 0x8732523ab23aLL); } #else // WIN32 - BackupProtocolClient& protocolReadOnly(*apProtocol); + #define protocolReadOnly (*apProtocol) #endif test_server_1(*apProtocol, protocolReadOnly); @@ -2490,6 +2490,7 @@ int test_read_old_backupstoreinfo_files() *apInfo, "spurtle", false /* AccountEnabled */, extra_data); // Delete the account to leave the store in the same state as before + apInfo.reset(); TEST_THAT_ABORTONFAIL(::system(BBSTOREACCOUNTS " -c testfiles/bbstored.conf delete 01234567 yes") == 0); TestRemoteProcessMemLeaks("bbstoreaccounts.memleaks"); -- cgit v1.2.3