]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
Test if variables are leaked in source_config().
authorSimon Ruderich <simon@ruderich.org>
Sat, 21 Feb 2009 19:52:59 +0000 (20:52 +0100)
committerSimon Ruderich <simon@ruderich.org>
Sat, 21 Feb 2009 19:52:59 +0000 (20:52 +0100)
tests/source_config.test

index b623150256afe75b3276ab531c5a348747885e77..c8d888e7bf6de65d8ed2aa16399cc2601a6951c3 100644 (file)
@@ -22,14 +22,20 @@ echo echo loaded zsh/os/rc.Darwin > tmp/zsh/os/rc.Darwin
 
 function tests() {
     source_config tmp/zsh os   rc Darwin nolocal
+    echo -n $source_file$source_file_local
     source_config tmp/zsh host rc zucker
+    echo -n $source_file$source_file_local
 
     source_config tmp/zsh os   env Darwin nolocal
+    echo -n $source_file$source_file_local
     source_config tmp/zsh host env zucker
+    echo -n $source_file$source_file_local
 
     source_config tmp/bash host rc zucker
+    echo -n $source_file$source_file_local
 
     source_config tmp/shell "" env zucker
+    echo -n $source_file$source_file_local
 }
 
 # Run tests without and with debug output.