| 737 | } |
| 738 | |
| 739 | void LldbFormattersTest::testQSetInt() |
| 740 | { |
| 741 | TestLaunchConfiguration cfg(QStringLiteral("debuggee_qsetint")); |
| 742 | addCodeBreakpoint(QUrl::fromLocalFile(findSourceFile("qsetint.cpp")), 6); |
| 743 | |
| 744 | QVERIFY(m_session->startDebugging(&cfg, m_iface)); |
| 745 | WAIT_FOR_STATE_AND_IDLE(m_session, DebugSession::PausedState); |
| 746 | |
| 747 | // Should be two rows ('auto', 'local') |
| 748 | QCOMPARE(variableCollection()->rowCount(), 2); |
| 749 | |
| 750 | variableCollection()->expanded(localVariableIndexAt(0)); |
| 751 | WAIT_FOR_A_WHILE_AND_IDLE(m_session, 50); |
| 752 | |
| 753 | if (!verifyVariable(0, QStringLiteral("s"), QStringLiteral("<size=2>"), QStringList{"10", "20"}, |
| 754 | __FILE__, __LINE__, true, false, true)) { |
| 755 | return; |
| 756 | } |
| 757 | |
| 758 | m_session->stepOver(); |
| 759 | WAIT_FOR_STATE_AND_IDLE(m_session, DebugSession::PausedState); |
| 760 | QCOMPARE(m_session->currentLine(), 7); |
| 761 | |
| 762 | if (!verifyVariable(0, QStringLiteral("s"), QStringLiteral("<size=3>"), QStringList{"10", "20", "30"}, |
| 763 | __FILE__, __LINE__, true, false, true)) { |
| 764 | return; |
| 765 | } |
| 766 | } |
| 767 | |
| 768 | void LldbFormattersTest::testQSetString() |
| 769 | { |
nothing calls this directly
no test coverage detected