From d62e22dcc06ff44ecee83e3f966bbf8b62871d3e Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Sun, 29 Aug 2021 23:10:50 +0200 Subject: [PATCH] Correct a realpath test This used the *logical* $PWD, but realpath would operate on the physical $PWD if given ".", even with -s. This makes this test fail if the $PWD is logically different from physical. --- tests/checks/realpath.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/checks/realpath.fish b/tests/checks/realpath.fish index 8e055c873..d0351e2d7 100644 --- a/tests/checks/realpath.fish +++ b/tests/checks/realpath.fish @@ -73,7 +73,7 @@ else end set -l real_path (builtin realpath -s .) -set -l expected_real_path (pwd) # Logical working directory. +set -l expected_real_path (pwd -P) # Physical working directory. if test "$real_path" = "$expected_real_path" echo "relative path correctly handled" # CHECK: relative path correctly handled