summaryrefslogtreecommitdiff
path: root/examples/Export
diff options
context:
space:
mode:
authorbrunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-03-05 03:40:45 +0000
committerbrunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-03-05 03:40:45 +0000
commit08a3fe8e88af30ba9ee28317a3fd84804546c1de (patch)
treeb954a734172c7b80dc13e505b6e4b6be4e38e5b2 /examples/Export
parent6b7ea4b718293f489f9021221f9a3c752c6d0ace (diff)
downloadATCD-08a3fe8e88af30ba9ee28317a3fd84804546c1de.tar.gz
Sun Mar 4 19:31:16 2001 Darrell Brunsch <brunsch@uci.edu>
Diffstat (limited to 'examples/Export')
-rwxr-xr-xexamples/Export/run_test.pl19
1 files changed, 4 insertions, 15 deletions
diff --git a/examples/Export/run_test.pl b/examples/Export/run_test.pl
index d88d4c72bea..7c84078d8ff 100755
--- a/examples/Export/run_test.pl
+++ b/examples/Export/run_test.pl
@@ -6,23 +6,12 @@ eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
# -*- perl -*-
use lib "../../bin";
+use PerlACE::Run_Test;
-require ACEutils;
-use Cwd;
+$TEST = new PerlACE::Process ("test");
-$cwd = getcwd();
-$test_exe = "$cwd$DIR_SEPARATOR"."test".$EXE_EXT;
+$status = $TEST->SpawnWaitKill (20);
-$TEST = Process::Create ($test_exe, "");
-
-$status = $TEST->TimedWait (20);
-if ($status == -1) {
- print STDERR "ERROR: test timed out\n";
- $status = 1;
- $TEST->Kill (); $TEST->TimedWait (1);
-}
-elsif ($status > 0) {
- print STDERR "ERROR: test failed\n";
-}
+$status = 1 if ($status < 0);
exit $status;