From 6137372afc35d35e67aacd20db345426b2486698 Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Wed, 20 Nov 2024 22:09:11 +0100 Subject: [PATCH] StringUtils: Add Christian's test case Add an originally spotted case in https://codereview.qt-project.org/c/qt-creator/qt-creator/+/604666. Amends 4f56f64cbf3a91839cf9743d38e9dd6f61f66903 Change-Id: Ic773d2f73813b2604b99db20ddd44dbe3e4415ce Reviewed-by: Christian Kandeler --- tests/auto/utils/stringutils/tst_stringutils.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/auto/utils/stringutils/tst_stringutils.cpp b/tests/auto/utils/stringutils/tst_stringutils.cpp index 78a75611366..b69aca4ba7b 100644 --- a/tests/auto/utils/stringutils/tst_stringutils.cpp +++ b/tests/auto/utils/stringutils/tst_stringutils.cpp @@ -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;