[Box Backup-commit] COMMIT r2000 - box/trunk/test/bbackupd

boxbackup-dev at fluffy.co.uk boxbackup-dev at fluffy.co.uk
Sat Dec 15 17:04:24 GMT 2007


Author: chris
Date: 2007-12-15 17:04:24 +0000 (Sat, 15 Dec 2007)
New Revision: 2000

Modified:
   box/trunk/test/bbackupd/testbbackupd.cpp
Log:
Report line of test where failed to kill internal daemon during SSL
keepalive tests.


Modified: box/trunk/test/bbackupd/testbbackupd.cpp
===================================================================
--- box/trunk/test/bbackupd/testbbackupd.cpp	2007-12-15 17:03:41 UTC (rev 1999)
+++ box/trunk/test/bbackupd/testbbackupd.cpp	2007-12-15 17:04:24 UTC (rev 2000)
@@ -701,9 +701,11 @@
 	return pid;
 }
 
-void stop_internal_daemon(int pid)
+bool stop_internal_daemon(int pid)
 {
-	TEST_THAT(KillServer(pid));
+	bool killed_server = KillServer(pid);
+	TEST_THAT(killed_server);
+	return killed_server;
 
 	/*
 	int status;
@@ -844,7 +846,7 @@
 		
 		int pid = start_internal_daemon();
 		wait_for_backup_operation();
-		stop_internal_daemon(pid);
+		TEST_THAT(stop_internal_daemon(pid));
 
 		// two-second delay on the first read() of f1
 		// should mean that a single keepalive is sent,
@@ -865,7 +867,7 @@
 		// can't test whether intercept was triggered, because
 		// it's in a different process.
 		// TEST_THAT(intercept_triggered());
-		stop_internal_daemon(pid);
+		TEST_THAT(stop_internal_daemon(pid));
 
 		// check that keepalive was written to logs, and
 		// diff was not aborted, i.e. upload was a diff
@@ -935,7 +937,7 @@
 		// can't test whether intercept was triggered, because
 		// it's in a different process.
 		// TEST_THAT(intercept_triggered());
-		stop_internal_daemon(pid);
+		TEST_THAT(stop_internal_daemon(pid));
 
 		// check that the diff was aborted, i.e. upload was not a diff
 		found1 = false;
@@ -995,7 +997,7 @@
 		// can't test whether intercept was triggered, because
 		// it's in a different process.
 		// TEST_THAT(intercept_triggered());
-		stop_internal_daemon(pid);
+		TEST_THAT(stop_internal_daemon(pid));
 
 		// check that the diff was aborted, i.e. upload was not a diff
 		found1 = false;
@@ -1079,7 +1081,7 @@
 		// can't test whether intercept was triggered, because
 		// it's in a different process.
 		// TEST_THAT(intercept_triggered());
-		stop_internal_daemon(pid);
+		TEST_THAT(stop_internal_daemon(pid));
 
 		// check that keepalives were sent during the dir search
 		found1 = false;




More information about the Boxbackup-commit mailing list