Index: unittests/tst_canbus.cpp =================================================================== diff -u -rb798668f16ad0967ab97e96f5f9a2cdd821e899f -r4578edcba291c0ffe718f31fb3077a1c931aaa46 --- unittests/tst_canbus.cpp (.../tst_canbus.cpp) (revision b798668f16ad0967ab97e96f5f9a2cdd821e899f) +++ unittests/tst_canbus.cpp (.../tst_canbus.cpp) (revision 4578edcba291c0ffe718f31fb3077a1c931aaa46) @@ -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 removeFirst of and empty list it will assert. + QVERIFY(true); +} + void tst_canbus::cleanup() { }