QUERY · ISSUE
esp32: float/*_special tests fail
port-esp32
The following two tests fail on the esp32: float/cmath_fun_special.py and float/math_domain_special.py:
> ./run-tests --device /dev/ttyUSB0 --target esp32 float/cmath_fun_special.py float/math_domain_special.py
FAIL float/cmath_fun_special.py
FAIL float/math_domain_special.py
2 tests performed (105 individual testcases)
0 tests passed
2 tests failed: cmath_fun_special math_domain_special
> ./run-tests --print-failures
FAILURE float_math_domain_special.py
--- float_math_domain_special.py.exp 2020-04-11 09:47:24.921644291 -0700
+++ float_math_domain_special.py.out 2020-04-11 09:47:24.921644291 -0700
@@ -45,7 +45,7 @@
gamma ValueError
1.0000
inf
-gamma ValueError
+inf
nan
lgamma ValueError
lgamma ValueError
FAILURE float_cmath_fun_special.py
--- float_cmath_fun_special.py.exp 2020-04-11 09:47:24.621649221 -0700
+++ float_cmath_fun_special.py.out 2020-04-11 09:47:24.621649221 -0700
@@ -7,10 +7,10 @@
complex(1, -0.68219)
complex(-0.30103, 0)
complex(-0.30103, 1.3644)
-complex(-0.15051, 0.34109)
-complex(-0.15051, 1.0233)
-complex(-0.15051, -0.34109)
-complex(-0.15051, -1.0233)
+complex(-0.15052, 0.34109)
+complex(-0.15052, 1.0233)
+complex(-0.15052, -0.34109)
+complex(-0.15052, -1.0233)
complex(0.12448, 0.51506)
complex(0.12448, 0.84932)
complex(0.12448, -0.51506)
>
CANDIDATE · ISSUE
esp32: viper tests fail after a while
port-esp32
If I execute a micropython/viper test on an esp32 in a loop it starts failing after a while (I started with a HW reset before this):
> while true; ./run-tests --device /dev/ttyUSB0 --target esp32 micropython/
viper_ptr32_load.py; end
pass micropython/viper_ptr32_load.py
1 tests performed (4 individual testcases)
1 tests passed
[...]
pass micropython/viper_ptr32_load.py
1 tests performed (4 individual testcases)
1 tests passed
FAIL micropython/viper_ptr32_load.py
1 tests performed (4 individual testcases)
0 tests passed
1 tests failed: viper_ptr32_load
skip micropython/viper_ptr32_load.py
0 tests performed (0 individual testcases)
0 tests passed
1 tests skipped: viper_ptr32_load
It takes less than a minute to get there. I noticed because running the full test suite shows this, e.g.:
> ./run-tests --device /dev/ttyUSB0 --target esp32 -d micropython
[...]
pass micropython/viper_misc_intbig.py
pass micropython/viper_ptr16_load.py
pass micropython/viper_ptr16_store.py
pass micropython/viper_ptr32_load.py
pass micropython/viper_ptr32_store.py
FAIL micropython/viper_ptr8_load.py
FAIL micropython/viper_ptr8_store.py
FAIL micropython/viper_subscr.py
FAIL micropython/viper_try.py
FAIL micropython/viper_types.py
FAIL micropython/viper_with.py
65 tests performed (411 individual testcases)
59 tests passed
4 tests skipped: heap_locked heapalloc_bytesio2 meminfo memstats
6 tests failed: viper_ptr8_load viper_ptr8_store viper_subscr viper_try viper_types viper_with
The tests that fail at the end are because they're at the end, not because they fail per-se.