From bd3400b0c89c8ee8a597a112b5ee6cc438fb7557 Mon Sep 17 00:00:00 2001
From: Joscha Schmiedt <joscha@schmiedt.dev>
Date: Fri, 13 Sep 2024 21:44:27 +0200
Subject: [PATCH] Fix failing unit get_env_fallback

Something something string literals on Windows...
---
 test/test_clinkahead.cpp | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/test/test_clinkahead.cpp b/test/test_clinkahead.cpp
index ef6c064..25e83fe 100644
--- a/test/test_clinkahead.cpp
+++ b/test/test_clinkahead.cpp
@@ -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) {
-- 
GitLab