From 3bcf9641eb2a8d39deda166579294ef515172d85 Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Mon, 3 Feb 2020 07:08:54 +0000 Subject: 45368: Add tests for workers/45367's issue about double slashes in 'cd -P' and /home/daniel/in/zsh. --- ChangeLog | 6 ++++++ Test/B01cd.ztst | 4 ++++ Test/D02glob.ztst | 4 ++++ 3 files changed, 14 insertions(+) diff --git a/ChangeLog b/ChangeLog index 663b3e88f..af4055964 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2020-02-03 Daniel Shahaf + + * 45368: Test/B01cd.ztst, Test/D02glob.ztst: Add tests for + workers/45367's issue about double slashes in 'cd -P' and + /home/daniel/in/zsh. + 2020-02-02 Peter Stephenson * 45373: Src/loop.c, Test/C03traps.ztst: ERR_EXIT failed on diff --git a/Test/B01cd.ztst b/Test/B01cd.ztst index 3312f8707..d903b7462 100644 --- a/Test/B01cd.ztst +++ b/Test/B01cd.ztst @@ -145,6 +145,10 @@ F:something is broken. But you already knew that. 1:Implicit cd with unset HOME. ?zsh:cd:1: HOME not set + $ZTST_testdir/../Src/zsh -fc 'cd -P ////dev && pwd' +-f:(workers/45367) cd -P squashes multiple leading slashes +>/dev + %clean # This optional section cleans up after the test, if necessary, # e.g. killing processes etc. This is in addition to the removal of *.tmp diff --git a/Test/D02glob.ztst b/Test/D02glob.ztst index 3d7df94c9..b0650c8c8 100644 --- a/Test/D02glob.ztst +++ b/Test/D02glob.ztst @@ -742,6 +742,10 @@ >glob.tmp/secret-s111/ glob.tmp/secret-s111 >glob.tmp/secret-s444/ glob.tmp/secret-s444 + () { echo $1:P } ////dev +-f:(workers/45367) modifier ':P' squashes multiple slashes +>/dev + %clean # Fix unreadable-directory permissions so ztst can clean up properly -- cgit 1.4.1