aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRachel Powers <508861+Ryex@users.noreply.github.com>2023-02-08 12:36:15 -0800
committerRachel Powers <508861+Ryex@users.noreply.github.com>2023-03-20 14:56:32 -0700
commit8ba51c790098ec9ebe3d2ef686f823b61c8a3645 (patch)
treeb6926d21f6bffa404961314a012392973c8f9a6b /tests
parent6d160a7b7e31034c7a657f30003562c20f9b9c21 (diff)
downloadPrismLauncher-8ba51c790098ec9ebe3d2ef686f823b61c8a3645.tar.gz
PrismLauncher-8ba51c790098ec9ebe3d2ef686f823b61c8a3645.tar.bz2
PrismLauncher-8ba51c790098ec9ebe3d2ef686f823b61c8a3645.zip
refactor: make complete list of links to make and send that.
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/FileSystem_test.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/FileSystem_test.cpp b/tests/FileSystem_test.cpp
index be0a4be0..4ccc4003 100644
--- a/tests/FileSystem_test.cpp
+++ b/tests/FileSystem_test.cpp
@@ -66,12 +66,17 @@ class LinkTask : public Task {
qDebug() << "EXPECTED: Link failure, Windows requires permissions for symlinks";
qDebug() << "atempting to run with privelage";
- connect(m_lnk, &FS::create_link::finishedPrivlaged, this, [&](){
- emitSucceeded();
+ connect(m_lnk, &FS::create_link::finishedPrivlaged, this, [&](bool gotResults){
+ if (gotResults) {
+ emitSucceeded();
+ } else {
+ qDebug() << "Privlaged run exited without results!";
+ emitFailed();
+ }
});
m_lnk->runPrivlaged();
} else {
- qDebug() << "Link Failed!" << m_lnk->getOSError().value() << m_lnk->getOSError().message().c_str();
+ qDebug() << "Link Failed!" << m_lnk->getOSError().value() << m_lnk->getOSError().message().c_str();
}
#else
qDebug() << "Link Failed!" << m_lnk->getOSError().value() << m_lnk->getOSError().message().c_str();