about summary refs log tree commit diff
path: root/Test/C03traps.ztst
diff options
context:
space:
mode:
Diffstat (limited to 'Test/C03traps.ztst')
-rw-r--r--Test/C03traps.ztst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Test/C03traps.ztst b/Test/C03traps.ztst
index f75c47c4d..b9d909761 100644
--- a/Test/C03traps.ztst
+++ b/Test/C03traps.ztst
@@ -59,8 +59,8 @@
 
 # $ZTST_exe is relative to the parent directory.
 # We ought to fix this in ztst.zsh...
-  cd ..
-  $ZTST_exe -fc 'TRAPEXIT() { print Exited.; }'
+  (cd ..
+  $ZTST_exe -fc 'TRAPEXIT() { print Exited.; }')
 0:EXIT traps on a script
 >Exited.