bug-gettext
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gettext-0.22.4 gettext-tools/gnulib-tests/test-execute.sh test case 17/1


From: Guangyu Li
Subject: gettext-0.22.4 gettext-tools/gnulib-tests/test-execute.sh test case 17/18/19 bug
Date: Thu, 25 Jan 2024 16:18:41 -0500

Hi devs, I found a test bug on macOSX Sonoma (M2 chip) with clang 14.0.0.
The cause seems to be the unexpected fd returned by 'open' from the new macos kernel. The obtained file descriptor was 11, failing the fd < 10 assertion below. This bug affects test-execute-main.c and test-execute-child.c in case 17-19. When the range check and dup2 arg are both adjusted accordingly (e.g. < 20 and dup2 to 20), all those three can pass. Hope this helps!


============================================================================
Testsuite summary for gettext-tools 0.22.4
============================================================================
# TOTAL: 393
# PASS:  357
# SKIP:  35
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0


FAIL: test-execute.sh
=====================

test-execute-main: test-execute-child subprocess failed
../../../gettext-tools/gnulib-tests/test-execute-main.c:366: assertion 'fd >= 0 && fd < 10' failed
../../../gettext-tools/gnulib-tests/test-execute.sh: line 4: 58735 Abort trap: 6           ${CHECKER} ./test-execute-main${EXEEXT} ./test-execute-child${EXEEXT} $i
test-execute.sh: test case 17 failed
../../../gettext-tools/gnulib-tests/test-execute-main.c:391: assertion 'fd >= 0 && fd < 10' failed
../../../gettext-tools/gnulib-tests/test-execute.sh: line 4: 58789 Abort trap: 6           ${CHECKER} ./test-execute-main${EXEEXT} ./test-execute-child${EXEEXT} $i
test-execute.sh: test case 18 failed
../../../gettext-tools/gnulib-tests/test-execute-main.c:423: assertion 'fd_in >= 0 && fd_in < 10' failed
../../../gettext-tools/gnulib-tests/test-execute.sh: line 4: 58840 Abort trap: 6           ${CHECKER} ./test-execute-main${EXEEXT} ./test-execute-child${EXEEXT} $i
test-execute.sh: test case 19 failed
FAIL test-execute.sh (exit status: 1)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]