diff --git a/server/core/test/test_config2.cc b/server/core/test/test_config2.cc index c0ab31a49..34a70815d 100644 --- a/server/core/test/test_config2.cc +++ b/server/core/test/test_config2.cc @@ -238,12 +238,15 @@ int test_enum(config::Enum& value) int test_path(config::Path& value) { + char path[PATH_MAX]; + getcwd(path, sizeof(path)); + static const TestEntry entries[] = { - { ".", true, "." }, - { "/tmp", true, "/tmp" }, + {path, true, path}, + {"/tmp", true, "/tmp"}, - { "non-existent", false } + {"non-existent", false} }; return test(value, entries, elements_in_array(entries));