aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2022-07-11 09:01:07 +0200
committerSefa Eyeoglu <contact@scrumplex.net>2022-09-20 15:59:43 +0200
commit09e85e948cdb361c306a1cccbc3557a464366a21 (patch)
tree9a33804b4370079902d7715ff5bc0c1e539b46e0 /tests
parent9ec1c00887579e97c7b7a190756f6ddae583563f (diff)
downloadPrismLauncher-09e85e948cdb361c306a1cccbc3557a464366a21.tar.gz
PrismLauncher-09e85e948cdb361c306a1cccbc3557a464366a21.tar.bz2
PrismLauncher-09e85e948cdb361c306a1cccbc3557a464366a21.zip
refactor: introduce RuntimeContext
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
Diffstat (limited to 'tests')
-rw-r--r--tests/Library_test.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/Library_test.cpp b/tests/Library_test.cpp
index 869c7673..a4ca9232 100644
--- a/tests/Library_test.cpp
+++ b/tests/Library_test.cpp
@@ -87,7 +87,7 @@ slots:
void test_legacy_native()
{
Library test("test.package:testname:testversion");
- test.m_nativeClassifiers[OpSys::Os_Linux]="linux";
+ test.m_nativeClassifiers["linux"] = "linux";
QCOMPARE(test.isNative(), true);
test.setRepositoryURL("file://foo/bar");
{
@@ -108,9 +108,9 @@ slots:
void test_legacy_native_arch()
{
Library test("test.package:testname:testversion");
- test.m_nativeClassifiers[OpSys::Os_Linux]="linux-${arch}";
- test.m_nativeClassifiers[OpSys::Os_OSX]="osx-${arch}";
- test.m_nativeClassifiers[OpSys::Os_Windows]="windows-${arch}";
+ test.m_nativeClassifiers["linux"]="linux-${arch}";
+ test.m_nativeClassifiers["osx"]="osx-${arch}";
+ test.m_nativeClassifiers["windows"]="windows-${arch}";
QCOMPARE(test.isNative(), true);
test.setRepositoryURL("file://foo/bar");
{
@@ -159,7 +159,7 @@ slots:
void test_legacy_native_arch_local_override()
{
Library test("test.package:testname:testversion");
- test.m_nativeClassifiers[OpSys::Os_Linux]="linux-${arch}";
+ test.m_nativeClassifiers["linux"]="linux-${arch}";
test.setHint("local");
QCOMPARE(test.isNative(), true);
test.setRepositoryURL("file://foo/bar");