Commit cb82b7fb authored by Milian Wolff's avatar Milian Wolff
Browse files

Try to fix test_gdb testStackDeactivateAndActive on the CI

See previous commit, this test is also affected by it.
parent 378f03ee
......@@ -944,7 +944,13 @@ void GdbTest::testStackDeactivateAndActive()
QCOMPARE(stackModel->rowCount(tIdx), 1);
COMPARE_DATA(stackModel->index(0, 0, tIdx), "0");
COMPARE_DATA(stackModel->index(0, 1, tIdx), "main");
COMPARE_DATA(stackModel->index(0, 2, tIdx), debugeeFileName+":31");
// depending on the compiler and gdb version, we may either end up in
// one line or the other
const auto last = stackModel->index(0, 2, tIdx).data().toString();
if (last.endsWith(":30"))
QCOMPARE(last, debugeeFileName + ":30");
else
QCOMPARE(last, debugeeFileName + ":31");
session->run();
WAIT_FOR_STATE(session, DebugSession::PausedState);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment