From 1943aec2ec390d9fda159aa0412362780ec83f09 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Thu, 9 Apr 2009 14:15:57 +0000 Subject: hush: plug the leak of expanded heredoc --- shell/hush_test/hush-z_slow/leak_heredoc1.right | 3 +++ shell/hush_test/hush-z_slow/leak_heredoc1.tests | 34 +++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 shell/hush_test/hush-z_slow/leak_heredoc1.right create mode 100755 shell/hush_test/hush-z_slow/leak_heredoc1.tests (limited to 'shell/hush_test') diff --git a/shell/hush_test/hush-z_slow/leak_heredoc1.right b/shell/hush_test/hush-z_slow/leak_heredoc1.right new file mode 100644 index 000000000..c6f0334f3 --- /dev/null +++ b/shell/hush_test/hush-z_slow/leak_heredoc1.right @@ -0,0 +1,3 @@ +Warm up +Measuring memory leak... +Ok diff --git a/shell/hush_test/hush-z_slow/leak_heredoc1.tests b/shell/hush_test/hush-z_slow/leak_heredoc1.tests new file mode 100755 index 000000000..26cbb28a4 --- /dev/null +++ b/shell/hush_test/hush-z_slow/leak_heredoc1.tests @@ -0,0 +1,34 @@ +echo "Warm up" +i=1 +while test $i != 99; do + : <