summaryrefslogtreecommitdiff
path: root/test/bbackupd
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2008-09-26 20:18:13 +0000
committerChris Wilson <chris+github@qwirx.com>2008-09-26 20:18:13 +0000
commit6a491272cea376e6dc5eaee93a3c30c4dee91d27 (patch)
tree805348476a8509e464df71fc67295318ee88400e /test/bbackupd
parente052e64d76f5ef281f8066d115ec5af76a10ee67 (diff)
Reinstate and fix the intercept tests for SSL keepalives.
Diffstat (limited to 'test/bbackupd')
-rw-r--r--test/bbackupd/testbbackupd.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/test/bbackupd/testbbackupd.cpp b/test/bbackupd/testbbackupd.cpp
index 53420876..68b2bce9 100644
--- a/test/bbackupd/testbbackupd.cpp
+++ b/test/bbackupd/testbbackupd.cpp
@@ -705,11 +705,11 @@ int start_internal_daemon()
TEST_EQUAL(0, result, "Daemon exit code");
// ensure that no child processes end up running tests!
- TEST_EQUAL(own_pid, getpid(), "Forking test problem");
if (getpid() != own_pid)
{
// abort!
- _exit(1);
+ BOX_INFO("Daemon child finished, exiting now.");
+ _exit(0);
}
TEST_THAT(TestFileExists("testfiles/bbackupd.pid"));
@@ -743,7 +743,7 @@ int start_internal_daemon()
bool stop_internal_daemon(int pid)
{
- bool killed_server = KillServer(pid, true);
+ bool killed_server = KillServer(pid, false);
TEST_THAT(killed_server);
return killed_server;
}
@@ -892,9 +892,8 @@ int test_bbackupd()
TEST_THAT(::system("gzip -d < testfiles/spacetest1.tgz "
"| ( cd testfiles/TestDir1 && tar xf - )") == 0);
#endif
-
-#if 1
-// #ifdef PLATFORM_CLIB_FNS_INTERCEPTION_IMPOSSIBLE
+
+#ifdef PLATFORM_CLIB_FNS_INTERCEPTION_IMPOSSIBLE
printf("\n==== Skipping intercept-based KeepAlive tests "
"on this platform.\n");
#else
@@ -2548,7 +2547,7 @@ int test_bbackupd()
TEST_THAT(TestGetFileSize("testfiles/TestDir1/f45.df")
> 1024);
}
-
+
// wait for backup daemon to do it's stuff, and compare again
wait_for_backup_operation();
compareReturnValue = ::system(BBACKUPQUERY " -Wwarning "