Skip to content

Commit b936f55

Browse files
committed
mb2hal tests: ignore QUIT signal delivery time
This is the same change made to the old test in 2.8, applied to the new test in 2.9: Don't look for SIGQUIT to be delivered at a specific time in the log, there's some natural variability there. We still look for the other "quit" messages, which do have well-defined order.
1 parent 0d4647d commit b936f55

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

tests/mb2hal/mb2hal.2a/checkresult

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,9 @@ cd "${TESTDIR}"
1010
# so that a single `expected` file works for both.
1111
sed --in-place --regexp-extended --expression='s/^(.*unloading HAL module \[)[0-9]+(.*)$/\1(ignored comp id)\2/' result
1212

13+
# The SIGQUIT signal does not arrive at a well-defined time, so don't
14+
# check for that debug log message. The rest of the shutdown messages
15+
# seem to have well-defined order.
16+
sed --in-place --regexp-extended --expression='/^mb2hal quit_signal DEBUG: signal \[15\] received$/d' result
17+
1318
diff -u expected result

tests/mb2hal/mb2hal.2a/expected

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ mb2hal create_each_mb_tx_hal_pins DEBUG: mb_tx_num [6] pin_name [mb2hal.Modbus_f
171171
mb2hal main OK: HAL components created OK
172172
mb2hal main OK: Link thread loop and logic 0 created OK
173173
mb2hal main OK: mb2hal is running
174-
mb2hal quit_signal DEBUG: signal [15] received
175174
mb2hal quit_cleanup DEBUG: started
176175
mb2hal quit_cleanup DEBUG: unloading HAL module [(ignored comp id)] ret[0]
177176
mb2hal quit_cleanup DEBUG: done OK

0 commit comments

Comments
 (0)