summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2012-12-21 09:23:06 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2012-12-21 09:23:06 +0000
commit0cfb706aa7d5b7ad80a4c7a7b4a23101d4531491 (patch)
treec3868ff5c984600e075b7817666ef6ac424bc3cf
parentc8485990a8932deb970f3f085b0bf9f0ef75a418 (diff)
downloadATCD-0cfb706aa7d5b7ad80a4c7a7b4a23101d4531491.tar.gz
Fri Dec 21 09:22:41 UTC 2012 Johnny Willemsen <jwillemsen@remedy.nl>
* protocols/tests/HTBP/Reactor_Tests/run_test.pl: * protocols/tests/HTBP/Send_Large_Msg/run_test.pl: * protocols/tests/HTBP/Send_Recv_Tests/run_test.pl: * protocols/tests/HTBP/ping/run_test.pl: Check return value of spawn, if it fails directly exit the test run
-rw-r--r--ACE/ChangeLog9
-rwxr-xr-xACE/protocols/tests/HTBP/Reactor_Tests/run_test.pl7
-rwxr-xr-xACE/protocols/tests/HTBP/Send_Large_Msg/run_test.pl7
-rwxr-xr-xACE/protocols/tests/HTBP/Send_Recv_Tests/run_test.pl7
-rwxr-xr-xACE/protocols/tests/HTBP/ping/run_test.pl7
5 files changed, 33 insertions, 4 deletions
diff --git a/ACE/ChangeLog b/ACE/ChangeLog
index 68fe7c3ccc1..d86cff4b4da 100644
--- a/ACE/ChangeLog
+++ b/ACE/ChangeLog
@@ -1,3 +1,12 @@
+Fri Dec 21 09:22:41 UTC 2012 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * protocols/tests/HTBP/Reactor_Tests/run_test.pl:
+ * protocols/tests/HTBP/Send_Large_Msg/run_test.pl:
+ * protocols/tests/HTBP/Send_Recv_Tests/run_test.pl:
+ * protocols/tests/HTBP/ping/run_test.pl:
+ Check return value of spawn, if it fails directly exit the
+ test run
+
Wed Dec 19 14:46:24 UTC 2012 Johnny Willemsen <jwillemsen@remedy.nl>
* include/makeinclude/platform_cegcc.GNU:
diff --git a/ACE/protocols/tests/HTBP/Reactor_Tests/run_test.pl b/ACE/protocols/tests/HTBP/Reactor_Tests/run_test.pl
index 0ba137a10e1..adc670ca0c3 100755
--- a/ACE/protocols/tests/HTBP/Reactor_Tests/run_test.pl
+++ b/ACE/protocols/tests/HTBP/Reactor_Tests/run_test.pl
@@ -22,7 +22,12 @@ my $SV = $target1->CreateProcess("server", "-p $port -o $synchfile");
$target1->DeleteFile ($synchbase);
$target2->DeleteFile ($synchbase);
-$SV->Spawn ();
+$server_status = $SV->Spawn ();
+
+if ($server_status != 0) {
+ print STDERR "ERROR: server returned $server_status\n";
+ exit 1;
+}
if ($target1->WaitForFileTimed ($synchbase,
$target1->ProcessStartWaitInterval()) == -1) {
diff --git a/ACE/protocols/tests/HTBP/Send_Large_Msg/run_test.pl b/ACE/protocols/tests/HTBP/Send_Large_Msg/run_test.pl
index 430f3fdf962..b0966acb519 100755
--- a/ACE/protocols/tests/HTBP/Send_Large_Msg/run_test.pl
+++ b/ACE/protocols/tests/HTBP/Send_Large_Msg/run_test.pl
@@ -23,7 +23,12 @@ my $CL = $target2->CreateProcess ("client", " -h $host -p $port");
$target1->DeleteFile ($synchbase);
$target2->DeleteFile ($synchbase);
-$SV->Spawn ();
+$server_status = $SV->Spawn ();
+
+if ($server_status != 0) {
+ print STDERR "ERROR: server returned $server_status\n";
+ exit 1;
+}
if ($target1->WaitForFileTimed ($synchbase,
$target1->ProcessStartWaitInterval()) == -1) {
diff --git a/ACE/protocols/tests/HTBP/Send_Recv_Tests/run_test.pl b/ACE/protocols/tests/HTBP/Send_Recv_Tests/run_test.pl
index 17b9e3f2193..5cceff49104 100755
--- a/ACE/protocols/tests/HTBP/Send_Recv_Tests/run_test.pl
+++ b/ACE/protocols/tests/HTBP/Send_Recv_Tests/run_test.pl
@@ -23,7 +23,12 @@ my $CL = $target2->CreateProcess ("client", " -h $host -p $port");
$target1->DeleteFile ($synchbase);
$target2->DeleteFile ($synchbase);
-$SV->Spawn ();
+$server_status = $SV->Spawn ();
+
+if ($server_status != 0) {
+ print STDERR "ERROR: server returned $server_status\n";
+ exit 1;
+}
if ($target1->WaitForFileTimed ($synchbase,
$target1->ProcessStartWaitInterval()) == -1) {
diff --git a/ACE/protocols/tests/HTBP/ping/run_test.pl b/ACE/protocols/tests/HTBP/ping/run_test.pl
index d5592ee3f26..aeac1a9ad14 100755
--- a/ACE/protocols/tests/HTBP/ping/run_test.pl
+++ b/ACE/protocols/tests/HTBP/ping/run_test.pl
@@ -24,7 +24,12 @@ my $CL = $target2->CreateProcess ("client", " -h $host -p $port");
$target1->DeleteFile ($synchbase);
$target2->DeleteFile ($synchbase);
-$SV->Spawn ();
+$server_status = $SV->Spawn ();
+
+if ($server_status != 0) {
+ print STDERR "ERROR: server returned $server_status\n";
+ exit 1;
+}
if ($target1->WaitForFileTimed ($synchbase,
$target1->ProcessStartWaitInterval()) == -1) {