Skip to content
Snippets Groups Projects
Commit bd3400b0 authored by Joscha Schmiedt's avatar Joscha Schmiedt
Browse files

Fix failing unit get_env_fallback

Something something string literals on Windows...
parent fbbef962
Branches
Tags
2 merge requests!61Release 0.3.0,!56Resolve "Unit tests unter Windows"
Pipeline #55182 canceled
......@@ -44,8 +44,9 @@ protected:
};
TEST_F(test_clinkahead, test_get_env_fallback) {
const char *const some_var = linkahead_utility_get_env_fallback("SOME_ENV_VAR", "fall-back");
EXPECT_EQ("fall-back", some_var);
constexpr auto fall_back = "fall-back";
const char *const some_var = linkahead_utility_get_env_fallback("SOME_ENV_VAR", fall_back);
EXPECT_EQ(fall_back, some_var);
}
TEST_F(test_clinkahead, test_other_client_error) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment