hush: plug memory leak

This commit is contained in:
Denis Vlasenko
2007-11-23 12:50:54 +00:00
parent f23c3f95e8
commit f962a0354e
4 changed files with 91 additions and 22 deletions

View File

@@ -31,6 +31,7 @@ do_test()
test -x "$x" || continue
name="${x%%.tests}"
test -f "$name.right" || continue
# echo Running test: "$name.right"
{
"$THIS_SH" "./$x" >"$name.xx" 2>&1
diff -u "$name.xx" "$name.right" >"../$1-$x.fail" && rm -f "$name.xx" "../$1-$x.fail"