[Box Backup-commit] COMMIT r1508 - box/chris/merge/test/bbackupd
boxbackup-dev@fluffy.co.uk
boxbackup-dev@fluffy.co.uk
Fri, 06 Apr 2007 17:00:47 +0100
Author: chris
Date: 2007-04-06 17:00:46 +0100 (Fri, 06 Apr 2007)
New Revision: 1508
Modified:
box/chris/merge/test/bbackupd/testbbackupd.cpp
Log:
Disable interrupted restore test on Win32 (uses fork)
(refs #3, merges part of [623])
Modified: box/chris/merge/test/bbackupd/testbbackupd.cpp
===================================================================
--- box/chris/merge/test/bbackupd/testbbackupd.cpp 2007-04-02 23:07:03 UTC (rev 1507)
+++ box/chris/merge/test/bbackupd/testbbackupd.cpp 2007-04-06 16:00:46 UTC (rev 1508)
@@ -465,6 +465,7 @@
abort();
}
+#ifndef WIN32
void do_interrupted_restore(const TLSContext &context, int64_t restoredirid)
{
int pid = 0;
@@ -527,6 +528,7 @@
}
}
}
+#endif // !WIN32
int start_internal_daemon()
{
@@ -1514,8 +1516,9 @@
compareReturnValue = ::system("../../bin/bbackupquery/bbackupquery -q -c testfiles/bbackupd.conf -l testfiles/query6.log \"compare -ac\" quit");
TEST_THAT(compareReturnValue == 2*256);
TestRemoteProcessMemLeaks("bbackupquery.memleaks");
-
- printf("Interrupted restore\n");
+
+#ifndef WIN32
+ printf("\n==== Interrupted restore\n");
{
do_interrupted_restore(context, restoredirid);
int64_t resumesize = 0;
@@ -1543,6 +1546,7 @@
TEST_THAT(compareReturnValue == 1*256);
TestRemoteProcessMemLeaks("bbackupquery.memleaks");
}
+#endif // !WIN32
printf("Check restore deleted files\n");
{