From 7938bd829dfd82c40b35d536b5913e666c1454d2 Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Tue, 27 May 2008 17:40:00 -0400 Subject: testsuite: use catch{close}catch{wait} to ensure child process pipe/zombie cleanup --- testsuite/systemtap.samples/args.exp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'testsuite/systemtap.samples/args.exp') diff --git a/testsuite/systemtap.samples/args.exp b/testsuite/systemtap.samples/args.exp index 6b1fd3d0..9cfc0d2b 100644 --- a/testsuite/systemtap.samples/args.exp +++ b/testsuite/systemtap.samples/args.exp @@ -21,7 +21,7 @@ expect { timeout { fail "$test compile (timeout)" } eof { } } -catch {close}; wait +closewait set modpath_cwd "$modname.ko" if [file exists $modpath_cwd] { @@ -55,7 +55,7 @@ expect { timeout { } eof { } } -catch {close}; wait +closewait if {$ok == 1} { pass "$test run 1" } else { @@ -70,7 +70,7 @@ expect { timeout { } eof { } } -catch {close}; wait +closewait if {$ok == 1} { pass "$test run 2" } else { -- cgit