StringUtils: Add Christian's test case

Add an originally spotted case in
https://codereview.qt-project.org/c/qt-creator/qt-creator/+/604666.

Amends 4f56f64cbf

Change-Id: Ic773d2f73813b2604b99db20ddd44dbe3e4415ce
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Jarek Kobus
2024-11-20 22:09:11 +01:00
parent 95a3eb0578
commit 6137372afc

View File

@@ -106,6 +106,7 @@ void tst_StringUtils::testParseUsedPortFromNetstatOutput_data()
// Linux
QTest::newRow("Linux1") << "sl local_address rem_address st tx_queue rx_queue tr tm->when retrnsmt ..." << -1;
QTest::newRow("Linux2") << "0: 00000000:2805 00000000:0000 0A 00000000:00000000 00:00000000 00000000 ..." << 10245;
QTest::newRow("Linux3") << " 1: 0100007F:193F 00000000:0000 0A 00000000:00000000 00:00000000 00000000 ..." << 6463;
// Mac
QTest::newRow("Mac1") << "Active Internet connections (including servers)" << -1;