From 4d9da8db25c2394c04c3cc974390a9846c892022 Mon Sep 17 00:00:00 2001 From: vaxerski Date: Fri, 29 Dec 2023 12:05:08 +0100 Subject: [PATCH] tests: adjust env check --- tests/config/config.conf | 2 +- tests/main.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/config/config.conf b/tests/config/config.conf index c0174ad..f519f27 100644 --- a/tests/config/config.conf +++ b/tests/config/config.conf @@ -9,7 +9,7 @@ $MY_VAR = 1337 $MY_VAR_2 = $MY_VAR testVar = $MY_VAR$MY_VAR_2 -testEnv = $XDG_SESSION_TYPE +testEnv = $SHELL testCategory { testValueInt = 123456 diff --git a/tests/main.cpp b/tests/main.cpp index 59e0743..4fcafe5 100644 --- a/tests/main.cpp +++ b/tests/main.cpp @@ -118,7 +118,7 @@ int main(int argc, char** argv, char** envp) { EXPECT(std::any_cast(config.getConfigValue("testVar")), 1337420); // test env variables - EXPECT(std::any_cast(config.getConfigValue("testEnv")), std::string{"wayland"}); + EXPECT(std::any_cast(config.getConfigValue("testEnv")), std::string{getenv("SHELL")}); } catch (const char* e) { std::cout << Colors::RED << "Error: " << Colors::RESET << e << "\n";