This is an automated email from the ASF dual-hosted git repository.

cmcfarlen pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git

commit b4ae1b8040b06bb7c9d8b8dbebfef58a71eff217
Author: Arnout Engelen <[email protected]>
AuthorDate: Mon Sep 15 22:44:13 2025 +0200

    test: make test_layout independent of TS_ROOT (#12481)
    
    So running the tests with TS_ROOT set works as well.
    
    (cherry picked from commit a6845914fea0cc3f6f193fbf85016f4694ec8465)
    (cherry picked from commit 668dbc60000bc62f9a913b627e252ac485f42fec)
---
 src/tscore/unit_tests/test_layout.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/tscore/unit_tests/test_layout.cc 
b/src/tscore/unit_tests/test_layout.cc
index 056445d580..237701c8f4 100644
--- a/src/tscore/unit_tests/test_layout.cc
+++ b/src/tscore/unit_tests/test_layout.cc
@@ -40,6 +40,7 @@ append_slash(const char *path)
 
 TEST_CASE("constructor test", "[constructor]")
 {
+  unsetenv("TS_ROOT");
   Layout layout;
   // test for constructor
   REQUIRE(layout.prefix == TS_BUILD_PREFIX);

Reply via email to