From: Marcio Barbosa Date: Thu, 6 Aug 2015 14:53:23 +0000 (-0300) Subject: tests: give the full path to the softsig test helper program X-Git-Tag: openafs-stable-1_8_0pre1~267 X-Git-Url: http://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=c38382c12763128d3f66e750e5e7b1c767ac74f7 tests: give the full path to the softsig test helper program In order to start the softsig test helper properly, the full path of this program is necessary. FIXES 132246 Change-Id: I4e9ff1e62a0b82078338eeaf0d4368ac1b35dccc Reviewed-on: http://gerrit.openafs.org/11977 Tested-by: BuildBot Reviewed-by: Michael Meffie Tested-by: Michael Meffie Reviewed-by: Benjamin Kaduk --- diff --git a/tests/opr/softsig-t b/tests/opr/softsig-t index 58c7a61..a2e6fc9 100755 --- a/tests/opr/softsig-t +++ b/tests/opr/softsig-t @@ -28,11 +28,12 @@ use Test::More tests => 11; use IO::File; use POSIX qw(:signal_h); use File::Temp; +use FindBin qw($Bin); # Start up our test process, and send it various signals. Check that these # signals make it to it correctly, and are reported on the command line. - -my $pid=open(HELPER, "./softsig-helper |") +my $softsig_helper = $Bin . "/softsig-helper"; +my $pid=open(HELPER, "$softsig_helper |") or die "Couldn't start test helper."; # Wait for softsig to start up. @@ -70,7 +71,7 @@ is($?, SIGKILL, "Helper exited on KILL signal."); # Check that an internal segmentation fault kills the process. -$pid = open(HELPER, "./softsig-helper -crash |") +$pid = open(HELPER, "$softsig_helper -crash |") or die "Couldn't start test helper."; close(HELPER); is($? & 0x7f, SIGSEGV, "Helper exited on SEGV signal."); @@ -78,7 +79,7 @@ is($? & 0x7f, SIGSEGV, "Helper exited on SEGV signal."); # Check that an internal bus error kills the process. my ($fh, $path) = mkstemp("/tmp/softsig-t_XXXXXX"); -$pid = open(HELPER, "./softsig-helper -buserror $path |") +$pid = open(HELPER, "$softsig_helper -buserror $path |") or die "Couldn't start test helper."; close(HELPER); is($? & 0x7f, SIGBUS, "Helper exited on BUS signal.");