mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 06:50:12 +00:00
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 <buildbot@rampaginggeek.com> Reviewed-by: Michael Meffie <mmeffie@sinenomine.net> Tested-by: Michael Meffie <mmeffie@sinenomine.net> Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
This commit is contained in:
parent
fcfa8d039a
commit
c38382c127
@ -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.");
|
||||
|
Loading…
Reference in New Issue
Block a user