mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
awk: Fix the tests
I'd forgotten that we have to adjust the stderr tests from
upstream. Remove the OK files. Also remove system-status.*. These
restore the fixes I made in 517e52b6c2 which were lost when I imported
the last version of awk.
Also, force LANG to be C.UTF-8 when testing to ensure that stray lang
settings don't fail tests.
Sponsored by: Netflix
This commit is contained in:
parent
32c7350beb
commit
ba7b7f94c2
8 changed files with 1 additions and 36 deletions
|
|
@ -1,2 +0,0 @@
|
|||
../a.out: not enough args in printf(%*s)
|
||||
source line number 1
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
../a.out: cannot set NF to a negative value
|
||||
source line number 1
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
../a.out: syntax error at source line 1 source file pfile-overflow.awk
|
||||
context is
|
||||
>>> <<<
|
||||
../a.out: bailing out at source line 1 source file pfile-overflow.awk
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
# Unmodified nawk prints the 16 bit exit status divided by 256, but
|
||||
# does so using floating point arithmetic, yielding strange results.
|
||||
#
|
||||
# The fix is to use the various macros defined for wait(2) and to
|
||||
# use the signal number + 256 for death by signal, or signal number + 512
|
||||
# for death by signal with core dump.
|
||||
|
||||
BEGIN {
|
||||
status = system("exit 42")
|
||||
print "normal status", status
|
||||
|
||||
status = system("kill -HUP $$")
|
||||
print "death by signal status", status
|
||||
|
||||
status = system("kill -ABRT $$")
|
||||
print "death by signal with core dump status", status
|
||||
|
||||
system("rm -f core*")
|
||||
}
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
normal status 42
|
||||
death by signal status 0.00390625
|
||||
death by signal with core dump status 0.523438
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
normal status 42
|
||||
death by signal status 257
|
||||
death by signal with core dump status 518
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
normal status 42
|
||||
death by signal status 257
|
||||
death by signal with core dump status 262
|
||||
|
|
@ -25,6 +25,7 @@
|
|||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
#
|
||||
|
||||
export LANG=C.UTF-8
|
||||
SRCDIR=$(atf_get_srcdir)
|
||||
|
||||
check()
|
||||
|
|
|
|||
Loading…
Reference in a new issue