pbiering / ipv6calc

ipv6calc
https://www.deepspace6.net/projects/ipv6calc.html
Other
45 stars 15 forks source link

Tests fail when the machine running them has high load #11

Closed zorun closed 5 years ago

zorun commented 5 years ago

While building and running tests for ipv6calc 2.0.0 on a quite busy machine, it failed unexpectedly:

$ make test-minimal
...
make[3]: Leaving directory '/build/ipv6calc/src/ipv6calc-2.0.0/ipv6calc'
~/ipv6calc/src/ipv6calc-2.0.0/ipv6calcweb
# Pseudo random selected
LD_LIBRARY_PATH=../lib:../databases/lib: ./test_ipv6calcweb.sh 2001:200:1:ea::1 || exit 1
++ HTTP_IPV6CALCWEB_OUTPUT_FORMAT=html
++ HTTP_IPV6CALCWEB_OUTPUT_FORMAT_HTML_DB=subcolumns
++ REMOTE_ADDR=50.60.70.80
++ ./ipv6calcweb.cgi
+ stderr='ipv6calcweb.cgi WARN  : System overloaded by load15 load=17.25/17.63/17.16 load_norm=2.15625/2.20375/2.145 limit=2/1.5/1 cpus=8'
+ set +x
ERROR : stderr not empty: ipv6calcweb.cgi WARN  : System overloaded by load15 load=17.25/17.63/17.16 load_norm=2.15625/2.20375/2.145 limit=2/1.5/1 cpus=8
make[2]: *** [Makefile:32: test] Error 1
make[2]: Leaving directory '/build/ipv6calc/src/ipv6calc-2.0.0/ipv6calcweb'
make[1]: *** [Makefile:43: test-minimal] Error 2
make[1]: Leaving directory '/build/ipv6calc/src/ipv6calc-2.0.0/ipv6calcweb'
Result: 2
make: *** [Makefile:176: test-minimal] Error 2

I wouldn't expect the system load to impact the results of tests! Is it possible to disable this kind of warnings during tests?

pbiering commented 5 years ago

thank you for reporting, fixed by commit

https://github.com/pbiering/ipv6calc/commit/5dc30aa1078ae3ad8e467a0f444d55f8b6ea3df7