From a042a4cb6272fb021404717545b63fbd22330a0f Mon Sep 17 00:00:00 2001 From: David Adam Date: Wed, 6 Feb 2019 06:51:27 +0800 Subject: [PATCH] low level tests: set pwd from getcwd before starting Fixes the tests in Debian pbuilder environments. Closes #5599. --- src/fish_tests.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/fish_tests.cpp b/src/fish_tests.cpp index cecb566f3..19172dff3 100644 --- a/src/fish_tests.cpp +++ b/src/fish_tests.cpp @@ -5075,6 +5075,9 @@ int main(int argc, char **argv) { // Set default signal handlers, so we can ctrl-C out of this. signal_reset_handlers(); + // Set PWD from getcwd - fixes #5599 + env_stack_t::principal().set_pwd_from_getcwd(); + if (should_test_function("utility_functions")) test_utility_functions(); if (should_test_function("wcstring_tok")) test_wcstring_tok(); if (should_test_function("env_vars")) test_env_vars();