From: Simon Ruderich Date: Sat, 21 Feb 2009 19:52:59 +0000 (+0100) Subject: Test if variables are leaked in source_config(). X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=99b1287d587936dd94b71aa9e65333daa68cc443;p=config%2Fdotfiles.git Test if variables are leaked in source_config(). --- diff --git a/tests/source_config.test b/tests/source_config.test index b623150..c8d888e 100644 --- a/tests/source_config.test +++ b/tests/source_config.test @@ -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.