Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit tests fail with profile=debug #883

Closed
rleh opened this issue Jul 11, 2022 · 1 comment · Fixed by #875
Closed

Unit tests fail with profile=debug #883

rleh opened this issue Jul 11, 2022 · 1 comment · Fixed by #875
Labels
Milestone

Comments

@rleh
Copy link
Member

rleh commented Jul 11, 2022

I accidentally discovered that the unit tests on Nucleo-F767ZI work in profile=release mode, but not with profile=debug.

Steps to reproduce:

cd modm/
cd test/
make compile-nucleo-f767zi
cd ../build/generated-unittest/nucleo-f767zi/
scons profile=debug -j16 program

First the resumable_test:354 fails and later an assertion fails in the timeout_test:

Unittests (Jul 11 2022, 18:26:13)␊
Machine:  pc␊
User:     user␊
Os:       Linux-5.18.10-200[...]␊
Compiler: arm-none-eabi-g++ 10.2.1␊
Local Git User:␊
[...]
Last Commit:␊
SHA:             579190d8f77a4cf13bed98cbd4ddad6e7a80acab␊
Abbreviated SHA: 579190d8f7␊
Subject:         [test] Fix mismatched operator delete[] in SPI mock␊
␊
[...]
␊
File Status:␊
Modified:  0␊
Added:     0␊
Deleted:   0␊
Renamed:   0␊
Copied:    0␊
Untracked: 0␊
␊
>>> LUDecomposition_test␊
>>> ad7280a_test␊
>>> angle_test␊
>>> arithmetic_traits_test␊
>>> atomic_queue_test␊
>>> bit_operation_test␊
>>> block_allocator_test␊
>>> bme280_test␊
>>> bmp085_test␊
>>> bounded_deque_test␊
>>> bounded_queue_test␊
>>> bounded_stack_test␊
>>> button_group_test␊
>>> button_test␊
>>> can_bit_timings_test␊
>>> can_connector_base_test␊
>>> can_connector_test␊
>>> can_lawicel_formatter_test␊
>>> can_message_test␊
>>> circle_2d_test␊
>>> clock_test␊
>>> color_test␊
>>> debounce_test␊
>>> delay_test␊
>>> dispatcher_test␊
>>> doubly_linked_list_test␊
>>> drv832x_spi_test␊
>>> dynamic_array_test␊
>>> endianness_test␊
>>> fiber_test␊
>>> fir_test␊
>>> flash_test␊
>>> i2c_test␊
>>> inplace_any_test␊
>>> interface_test␊
>>> interface_test␊
>>> io_stream_test␊
>>> lagrange_interpolation_test␊
>>> line_2d_test␊
>>> line_segment_2d_test␊
>>> linear_interpolation_test␊
>>> linked_list_test␊
>>> location_2d_test␊
>>> ltc2984_test␊
>>> matrix_test␊
>>> matrix_vector_test␊
>>> mcp2515_can_bit_timings_test␊
>>> median_test␊
>>> message_test␊
>>> moving_average_test␊
>>> node_test␊
>>> operator_test␊
>>> pair_test␊
>>> periodic_timer_test␊
>>> pid_test␊
>>> point_set_2d_test␊
>>> polygon_2d_test␊
>>> prescaler_test␊
>>> protothread_test␊
>>> quaternion_test␊
>>> ramp_test␊
>>> range_test␊
>>> ray_2d_test␊
>>> register_test␊
>>> resumable_test␊
FAIL: resumable_test:354 : ␊
rf.nest␊
rf.nesting␊
       ^␊
>>> s_curve_controller_test␊
>>> s_curve_generator_test␊
>>> saturation_test␊
>>> scheduler_test␊
>>> slave_test␊
>>> spi_device_test␊
>>> time_test␊
>>> timeout_test␊
Assertion 'tmr.neg' failed!␊
  Timer interval must be larger than zero!␊
Abandoning...␊
@rleh rleh changed the title Unit test fail with profile=debug Unit tests fail with profile=debug Jul 11, 2022
@chris-durand
Copy link
Member

chris-durand commented Jul 11, 2022

Will be fixed in #875

@chris-durand chris-durand added this to the 2022q2 milestone Jul 11, 2022
@salkinium salkinium linked a pull request Jul 12, 2022 that will close this issue
32 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging a pull request may close this issue.

2 participants