Index: unittests/tst_canbus.cpp =================================================================== diff -u -rb798668f16ad0967ab97e96f5f9a2cdd821e899f -r7d3062c841b788ced31d939dec990afe0de1442d --- unittests/tst_canbus.cpp (.../tst_canbus.cpp) (revision b798668f16ad0967ab97e96f5f9a2cdd821e899f) +++ unittests/tst_canbus.cpp (.../tst_canbus.cpp) (revision 7d3062c841b788ced31d939dec990afe0de1442d) @@ -321,6 +321,16 @@ QVERIFY( ! _emited ); // Should not emit due to - ERROR : "Incorrect data for Message ID (HD) '0x0200'" } +void tst_canbus::tst_FrameInterface_FrameReceived_removeHead_EmptyList() +{ + FrameInterface frame; + frame.init(); + QVERIFY(frame._txFrameList.isEmpty()); + frame.removeHead(); + // if the code doesn't work and calls the removeFist of and empty list it will assert. + QVERIFY(true); +} + void tst_canbus::cleanup() { }