summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-03-04 18:10:35 +1100
committerAndrew Bartlett <abartlet@samba.org>2012-03-04 10:14:34 +0100
commite495118aaba20d05e6da937040de4f82b600b70b (patch)
tree7c0edd2dd757f8188e9e44df7d81a9c7a0ab45ce
parentd715e2c2948cf642e725bee56f1f43e2395a2025 (diff)
downloadsamba-e495118aaba20d05e6da937040de4f82b600b70b.tar.gz
samba-e495118aaba20d05e6da937040de4f82b600b70b.tar.bz2
samba-e495118aaba20d05e6da937040de4f82b600b70b.zip
selftest: Fix waitpid termination test
-rwxr-xr-xselftest/target/Samba3.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/selftest/target/Samba3.pm b/selftest/target/Samba3.pm
index c9ad7d31fe..a5ae8a1bb0 100755
--- a/selftest/target/Samba3.pm
+++ b/selftest/target/Samba3.pm
@@ -57,7 +57,7 @@ sub teardown_env($$)
# This should give it time to write out the gcov data
sleep(1);
$count++;
- last if $childpid == 0 or $count > 20;
+ last if $childpid == -1 or $count > 20;
}
if ($count <= 20) {
@@ -74,7 +74,7 @@ sub teardown_env($$)
my $childpid = waitpid(-1, WNOHANG);
sleep(1);
$count++;
- last if $childpid == 0 or $count > 20;
+ last if $childpid == -1 or $count > 20;
}
if ($count <= 10) {