}
}
+# Start with a clean slate
+cleanup_handler 0
+
# Compile a C program to use as the user-space probing target
set stap_path $env(SYSTEMTAP_PATH)/stap
set sup_dpath "[pwd]/sdt_misc_.d"
}
# This is perhaps a wee bit clumsy
- verbose -log "$loop_exepath >| ,semclean 2>&1 & TEST=\$! ; \
+ verbose -log "$loop_exepath > ,semclean 2>&1 & TEST=\$! ; \
$stap_path --runtime=$runtime $srcdir/$subdir/sdt_misc.stp $loop_exepath >| ,semout ; \
/bin/kill -SIGINT \$TEST"
- system "$loop_exepath >,semclean 2>&1 & TEST=\$! ; \
+ catch {system "$loop_exepath > ,semclean 2>&1 & TEST=\$! ; \
$stap_path --runtime=$runtime $srcdir/$subdir/sdt_misc.stp $loop_exepath >| ,semout ; \
- /bin/kill -SIGINT \$TEST"
+ /bin/kill -SIGINT \$TEST"}
} elseif {[uprobes_p]} {
# This is perhaps a wee bit clumsy
- verbose -log "$loop_exepath >| ,semclean 2>&1 & TEST=\$! ; \
+ verbose -log "$loop_exepath > ,semclean 2>&1 & TEST=\$! ; \
$stap_path $srcdir/$subdir/sdt_misc.stp $loop_exepath >| ,semout ; \
/bin/kill -SIGINT \$TEST"
- system "$loop_exepath >,semclean 2>&1 & TEST=\$! ; \
+ catch {system "$loop_exepath > ,semclean 2>&1 & TEST=\$! ; \
$stap_path $srcdir/$subdir/sdt_misc.stp $loop_exepath >| ,semout ; \
- /bin/kill -SIGINT \$TEST"
+ /bin/kill -SIGINT \$TEST"}
} else {
untested "$test $pbtype_mssg attach"
continue
}
# This is perhaps a wee bit clumsy
- verbose -log "$loop_exepath >| ,semclean 2>&1 & TEST=\$! ; \
+ verbose -log "$loop_exepath > ,semclean 2>&1 & TEST=\$! ; \
$stap_path --runtime=$runtime $srcdir/$subdir/sdt_misc.stp $loop_exepath $supl_sopath >| ,semout ; \
/bin/kill -SIGINT \$TEST"
- system "$loop_exepath >,semclean 2>&1 & TEST=\$! ; \
+ catch {system "$loop_exepath > ,semclean 2>&1 & TEST=\$! ; \
$stap_path --runtime=$runtime $srcdir/$subdir/sdt_misc.stp $loop_exepath $supl_sopath >| ,semout ; \
- /bin/kill -SIGINT \$TEST"
+ /bin/kill -SIGINT \$TEST"}
} elseif {[uprobes_p]} {
# This is perhaps a wee bit clumsy
- verbose -log "$loop_exepath >| ,semclean 2>&1 & TEST=\$! ; \
+ verbose -log "$loop_exepath > ,semclean 2>&1 & TEST=\$! ; \
$stap_path $srcdir/$subdir/sdt_misc.stp $loop_exepath $supl_sopath >| ,semout ; \
/bin/kill -SIGINT \$TEST"
- system "$loop_exepath >,semclean 2>&1 & TEST=\$! ; \
+ catch {system "$loop_exepath > ,semclean 2>&1 & TEST=\$! ; \
$stap_path $srcdir/$subdir/sdt_misc.stp $loop_exepath $supl_sopath >| ,semout ; \
- /bin/kill -SIGINT \$TEST"
+ /bin/kill -SIGINT \$TEST"}
} else {
untested "$test $pbtype_mssg shared attach"
continue