nginx: njs test failure on x86
njs test fails on x86 since the musl 1.2 upgrade:
>>> nginx: Running njs tests...
Skipping expect tests
gcc -c -D_GNU_SOURCE -pipe -fPIC -fvisibility=hidden -O -W -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wmissing-prototypes -Werror -g -O -I/usr/include/moonjit-2.2 -Os -fomit-frame-pointer -Wno-deprecated-declarations -DNDK_SET_VAR -DNDK_SET_VAR -DNDK_UPSTREAM_LIST \
-Isrc -Ibuild -Injs \
-o build/test/njs_externals_test.o \
-MMD -MF build/test/njs_externals_test.dep -MT build/test/njs_externals_test.o \
src/test/njs_externals_test.c
gcc -o build/njs_unit_test -D_GNU_SOURCE -pipe -fPIC -fvisibility=hidden -O -W -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wmissing-prototypes -Werror -g -O -I/usr/include/moonjit-2.2 -Os -fomit-frame-pointer -Wno-deprecated-declarations -DNDK_SET_VAR -DNDK_SET_VAR -DNDK_UPSTREAM_LIST \
-Isrc -Ibuild \
-MMD -MF build/test/njs_unit_test.dep -MT build/njs_unit_test.c \
build/test/njs_externals_test.o \
-Injs src/test/njs_unit_test.c build/libnjs.a \
-lm -lpcre
build/njs_unit_test
njs("Math.tanh(0.5) - (Math.E - 1)/(Math.E + 1)")
expected: "0"
got: "5.551115123125783e-17"
script tests: FAILED [4764/4765]
denormals tests: PASSED [9/9]
module tests: PASSED [5/5]
externals tests: PASSED [76/76]
shared tests: PASSED [26/26]
interactive tests: PASSED [56/56]
timezone tests: PASSED [28/28]
regexp tests: PASSED [14/14]
vm_json tests: PASSED [6/6]
vm_value tests: PASSED [8/8]
vm_internal_api tests: PASSED [57/57]
TOTAL: FAILED [5049/5050]
make: *** [build/Makefile:820: unit_test] Error 1
>>> ERROR: nginx: check failed
I am not sure what the consequence of this is so I have disabled the package on x86 for now til maintainer decides what the wanted action is. Options are:
- keep nginx disabled for x86
- exclude njs on x86 (if we do this we should probably also exclude it on s390x and mips64)
- ignore the error by skip the test (like it is done with s390x and mips64)
- find someone who can investigate the problem and fix it
- something else?