Re: All translated tests failing - invalid routine id / error with status 1
- Posted by ghaberek (admin) Apr 13, 2018
- 1270 views
Okay, I think I'm sniffing up the right tree here. I added a couple lines to the end of std/unittest.e. It looks like the translator is not getting the correct routine id for test_crash(). The interpreted and bound tests print test_crash_id = 7 but the translated test prints test_crash_id = 0. But at this point I'm not sure why.
ifdef not CRASH then function test_crash( object o ) test_fail( "unittesting crashed" ) test_report() o = 0 return o end function integer test_crash_id = routine_id( "test_crash" ) printf( 1, "test_crash_id = %d\n", test_crash_id ) error:crash_routine( test_crash_id ) end ifdef
interpreting t_881-1.e: test_crash_id = 7 binding t_881-1.e: deleted 335 unused routines and 1386 unused variables. You may now run ./t_881-1-bound test_crash_id = 7 translating t_881-1.e:test_crash_id = 0 Fatal run-time error: invalid routine id passed to crash_routine() FAILURE: t_881-1 EUPHORIA error with status 1 Test results summary: FAIL: translated t_881-1-translated Files (run: 3) (failed: 1) (67% success)
-Greg