xmos / lib_device_control

xCORE device control library
Other
2 stars 16 forks source link

i2c_end_to_end test output race results in nondeterministic ordering #26

Closed samchesney closed 6 years ago

samchesney commented 7 years ago

Test sometimes fails due to the following:

Line 0 of output does not match expected
  Expected: Start host app
  Actual  : Start device app
Line 1 of output does not match expected
  Expected: Start device app
  Actual  : Start host app

Appears that the output sequence is nondeterministic, as the test still completes successfully even though a failure is recorded:

Start device app
Start host app
Device found
started
1: W 42 0 2, 99 ed
Host written successfully
2: R 42 128 4
Host read successfully: 0x12, 0x34, 0x56, 0x78
3: W 42 0 2, 99 ed
Host written successfully
4: R 42 128 4
Host read successfully: 0x12, 0x34, 0x56, 0x78
Success!!