diff options
| author | Trial97 <alexandru.tripon97@gmail.com> | 2023-09-28 22:50:12 +0300 |
|---|---|---|
| committer | Trial97 <alexandru.tripon97@gmail.com> | 2023-09-28 22:50:12 +0300 |
| commit | 9acbf98f940204cd141203a6eccbc9a7351e5a78 (patch) | |
| tree | 6ac8fe4b0e51ee58c67e02783fe97b00de707167 /tests/FileSystem_test.cpp | |
| parent | 254444470f020b086648ac496ebfffb7d3e9ce05 (diff) | |
| parent | 59e565ef96b85be9a25fa5d4f1723ee87fd5e75e (diff) | |
| download | PrismLauncher-9acbf98f940204cd141203a6eccbc9a7351e5a78.tar.gz PrismLauncher-9acbf98f940204cd141203a6eccbc9a7351e5a78.tar.bz2 PrismLauncher-9acbf98f940204cd141203a6eccbc9a7351e5a78.zip | |
Merge branch 'develop' of https://github.com/PrismLauncher/PrismLauncher into feat/acknowledge_release_type
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
Diffstat (limited to 'tests/FileSystem_test.cpp')
| -rw-r--r-- | tests/FileSystem_test.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/tests/FileSystem_test.cpp b/tests/FileSystem_test.cpp index 3adcd343..1d3cee85 100644 --- a/tests/FileSystem_test.cpp +++ b/tests/FileSystem_test.cpp @@ -81,10 +81,10 @@ class LinkTask : public Task { } else { emitSucceeded(); } - }; + } FS::create_link* m_lnk; - bool m_useHard = false; + [[maybe_unused]] bool m_useHard = false; bool m_linkRecursive = true; }; @@ -353,15 +353,12 @@ class FileSystemTest : public QObject { } } - void test_getDesktop() - { - QCOMPARE(FS::getDesktopDir(), QStandardPaths::writableLocation(QStandardPaths::DesktopLocation)); - } + void test_getDesktop() { QCOMPARE(FS::getDesktopDir(), QStandardPaths::writableLocation(QStandardPaths::DesktopLocation)); } void test_link() { QString folder = QFINDTESTDATA("testdata/FileSystem/test_folder"); - auto f = [&folder, this]() { + auto f = [&folder]() { QTemporaryDir tempDir; tempDir.setAutoRemove(true); qDebug() << "From:" << folder << "To:" << tempDir.path(); @@ -630,7 +627,7 @@ class FileSystemTest : public QObject { void test_link_with_max_depth() { QString folder = QFINDTESTDATA("testdata/FileSystem/test_folder"); - auto f = [&folder, this]() { + auto f = [&folder]() { QTemporaryDir tempDir; tempDir.setAutoRemove(true); qDebug() << "From:" << folder << "To:" << tempDir.path(); |
