HomeFreeBSD

ZTS: Use correct signal numbers for status checks

Description

ZTS: Use correct signal numbers for status checks

Different operating systems encode exit status in different ways.
The logapi shell library assumes the Solaris meaning of exit codes,
which is not correct on other platforms.

Define the needed constants according to the platform we are running
on and use those to decode process exit status.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
Closes #10121

Details

Provenance
freqlabsAuthored on Mar 12 2020, 5:50 PM
GitHub <noreply@github.com>Committed on Mar 12 2020, 5:50 PM
Parents
rGcdbc34fc2b95: ZTS: Test boundary conditions in alloc_class_012
Branches
Unknown
Tags
Unknown