diff options
Diffstat (limited to 'TAO/tests/RTCORBA/Destroy_Thread_Pool/run_test.pl')
-rwxr-xr-x | TAO/tests/RTCORBA/Destroy_Thread_Pool/run_test.pl | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/TAO/tests/RTCORBA/Destroy_Thread_Pool/run_test.pl b/TAO/tests/RTCORBA/Destroy_Thread_Pool/run_test.pl new file mode 100755 index 00000000000..5da7912d505 --- /dev/null +++ b/TAO/tests/RTCORBA/Destroy_Thread_Pool/run_test.pl @@ -0,0 +1,33 @@ +eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' + & eval 'exec perl -S $0 $argv:q' + if 0; + +# $Id$ +# -*- perl -*- + +use lib "$ENV{ACE_ROOT}/bin"; +use PerlACE::Run_Test; + +$continuous = ($^O eq 'hpux'); + +print STDERR "\n********** RTCORBA Destroy_Thread_Pool Unit Test **********\n\n"; + +if (PerlACE::is_vxworks_test()) { + $T = new PerlACE::ProcessVX ("Destroy_Thread_Pool"); +} +else { + $T = new PerlACE::Process ("Destroy_Thread_Pool"); +} + +if ($continuous) { + $T->Arguments("-ORBSvcConf continuous$PerlACE::svcconf_ext"); +} + +$test = $T->SpawnWaitKill (60); + +if ($test != 0) { + print STDERR "ERROR: test returned $test\n"; + exit 1; +} + +exit 0; |