tests: Fix perl string concatenation spacing

tests/rx/perf-t and tests/rx/simple-t contain an identical section of
perl code for checking the exit status of the relevant server process.
The spacing around some string concatenations are missing some spaces.
Add the missing spaces.

Thanks to sahilcdq@proton.me and cwills@sinenomine.net for pointing
these out.

Change-Id: Ieca3e6e5eabbd1c65c07edc33f1a884fc0fac248
Reviewed-on: https://gerrit.openafs.org/15848
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Sahil Siddiq <sahilcdq@proton.me>
Reviewed-by: Cheyenne Wills <cwills@sinenomine.net>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
This commit is contained in:
Andrew Deason 2024-09-09 00:53:04 -05:00
parent c138ff821c
commit 3f4f862d14
2 changed files with 4 additions and 4 deletions

View File

@ -63,9 +63,9 @@ kill("TERM", $pid);
waitpid($pid, 0); waitpid($pid, 0);
my $ecode = ${^CHILD_ERROR_NATIVE}; my $ecode = ${^CHILD_ERROR_NATIVE};
if (WIFSIGNALED($ecode) && WTERMSIG($ecode) != SIGTERM) { if (WIFSIGNALED($ecode) && WTERMSIG($ecode) != SIGTERM) {
fail("Server died with signal ".WTERMSIG($ecode)); fail("Server died with signal " . WTERMSIG($ecode));
} elsif (WIFEXITED($ecode) && WEXITSTATUS($ecode) != 0) { } elsif (WIFEXITED($ecode) && WEXITSTATUS($ecode) != 0) {
fail("Server exited with code". WEXITSTATUS($ecode)); fail("Server exited with code " . WEXITSTATUS($ecode));
} else { } else {
pass("Server exited succesfully"); pass("Server exited succesfully");
} }

View File

@ -82,7 +82,7 @@ my $ecode = ${^CHILD_ERROR_NATIVE};
if (WIFSIGNALED($ecode) && WTERMSIG($ecode) == SIGTERM) { if (WIFSIGNALED($ecode) && WTERMSIG($ecode) == SIGTERM) {
pass("Server died with SIGTERM"); pass("Server died with SIGTERM");
} elsif (WIFSIGNALED($ecode)) { } elsif (WIFSIGNALED($ecode)) {
fail("Server died with signal ".WTERMSIG($ecode)); fail("Server died with signal " . WTERMSIG($ecode));
} else { } else {
fail("Server exited with code". WEXITSTATUS($ecode)); fail("Server exited with code " . WEXITSTATUS($ecode));
} }