diff options
author | hjk <hjk@qt.io> | 2022-09-02 16:52:07 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2022-09-06 10:56:07 +0000 |
commit | b94d4f75d0f9909aae362d0b0c2ee0f1039eb809 (patch) | |
tree | 8d3c8cb115b5115641768ceabad99be62781024b | |
parent | 9eef9251334d951e4d696775e0647918aaf32673 (diff) | |
download | qt-creator-b94d4f75d0f9909aae362d0b0c2ee0f1039eb809.tar.gz |
Utils: Code cosmetics in tst_fileutils.cpp
Change-Id: I2afc6e96f53d8bc2a7c9a8125bdd8ba9b6510baa
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
-rw-r--r-- | tests/auto/utils/fileutils/tst_fileutils.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/auto/utils/fileutils/tst_fileutils.cpp b/tests/auto/utils/fileutils/tst_fileutils.cpp index 55d137f2f7..702fec3fad 100644 --- a/tests/auto/utils/fileutils/tst_fileutils.cpp +++ b/tests/auto/utils/fileutils/tst_fileutils.cpp @@ -707,9 +707,8 @@ void tst_fileutils::asyncLocalCopy() void tst_fileutils::startsWithDriveLetter_data() { - if (!HostOsInfo::isWindowsHost()) { + if (!HostOsInfo::isWindowsHost()) QSKIP("This test is only relevant on Windows"); - } QTest::addColumn<FilePath>("path"); QTest::addColumn<bool>("expected"); @@ -728,7 +727,8 @@ void tst_fileutils::startsWithDriveLetter() QCOMPARE(path.startsWithDriveLetter(), expected); } -void tst_fileutils::onDevice_data() { +void tst_fileutils::onDevice_data() +{ QTest::addColumn<FilePath>("path"); QTest::addColumn<FilePath>("templatePath"); QTest::addColumn<FilePath>("expected"); @@ -742,7 +742,8 @@ void tst_fileutils::onDevice_data() { } -void tst_fileutils::onDevice() { +void tst_fileutils::onDevice() +{ QFETCH(FilePath, path); QFETCH(FilePath, templatePath); QFETCH(FilePath, expected); @@ -750,7 +751,8 @@ void tst_fileutils::onDevice() { QCOMPARE(path.onDevice(templatePath), expected); } -void tst_fileutils::plus_data() { +void tst_fileutils::plus_data() +{ QTest::addColumn<FilePath>("left"); QTest::addColumn<QString>("right"); QTest::addColumn<FilePath>("expected"); |