summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.printf
diff options
context:
space:
mode:
authorwcohen <wcohen>2008-01-07 21:12:53 +0000
committerwcohen <wcohen>2008-01-07 21:12:53 +0000
commit14b31996a7752ab19f1b9017c65742c866394c1e (patch)
tree5b3fb62b169ca06f9c7bb380a1fe032ebcfc4ab7 /testsuite/systemtap.printf
parentb5121873c8e4cf5c89105d93b76c1fe7c8f10811 (diff)
downloadsystemtap-steved-14b31996a7752ab19f1b9017c65742c866394c1e.tar.gz
systemtap-steved-14b31996a7752ab19f1b9017c65742c866394c1e.tar.xz
systemtap-steved-14b31996a7752ab19f1b9017c65742c866394c1e.zip
2008-01-07 William Cohen <wcohen@redhat.com>
* testsuite/lib/systemtap.exp (as_root): new proc. * testsuite/systemtap.context/context.exp: * testsuite/systemtap.printf/end1b.exp: * testsuite/systemtap.printf/mixed_outb.exp: * testsuite/systemtap.printf/out1b.exp: * testsuite/systemtap.printf/out2b.exp: * testsuite/systemtap.printf/out3b.exp: Use as_root proc.
Diffstat (limited to 'testsuite/systemtap.printf')
-rw-r--r--testsuite/systemtap.printf/end1b.exp8
-rw-r--r--testsuite/systemtap.printf/mixed_outb.exp8
-rw-r--r--testsuite/systemtap.printf/out1b.exp8
-rw-r--r--testsuite/systemtap.printf/out2b.exp8
-rw-r--r--testsuite/systemtap.printf/out3b.exp8
5 files changed, 20 insertions, 20 deletions
diff --git a/testsuite/systemtap.printf/end1b.exp b/testsuite/systemtap.printf/end1b.exp
index b1b75c52..6168f66e 100644
--- a/testsuite/systemtap.printf/end1b.exp
+++ b/testsuite/systemtap.printf/end1b.exp
@@ -24,24 +24,24 @@ if {[catch {exec mktemp -t staptestXXXXX} tmpfile]} {
if {[catch {exec stap -b -o $tmpfile $test} res]} {
untested $TEST_NAME
puts "stap failed: $res"
- catch {eval [list exec sudo /bin/rm -f] [glob ${tmpfile}*]}
+ as_root {/bin/rm -f [glob ${tmpfile}*]}
return
}
if {[catch {eval [list exec $stap_merge_path -o $tmpfile] [glob "${tmpfile}_*"]} res]} {
puts "merge failed: $res"
fail "$TEST_NAME failed"
- catch {eval [list exec sudo /bin/rm -f] [glob ${tmpfile}*]}
+ as_root {/bin/rm -f [glob ${tmpfile}*]}
return
}
if {[catch {exec cmp $tmpfile $srcdir/$subdir/large_output} res]} {
puts "$res"
fail "$TEST_NAME failed"
- catch {eval [list exec sudo /bin/rm -f] [glob ${tmpfile}*]}
+ as_root {/bin/rm -f [glob ${tmpfile}*]}
return
}
pass "$TEST_NAME passed"
-catch {eval [list exec sudo /bin/rm -f] [glob ${tmpfile}*]}
+as_root {/bin/rm -f [glob ${tmpfile}*]}
diff --git a/testsuite/systemtap.printf/mixed_outb.exp b/testsuite/systemtap.printf/mixed_outb.exp
index 9d1be4c6..6d352dd4 100644
--- a/testsuite/systemtap.printf/mixed_outb.exp
+++ b/testsuite/systemtap.printf/mixed_outb.exp
@@ -24,24 +24,24 @@ if {[catch {exec mktemp -t staptestXXXXX} tmpfile]} {
if {[catch {exec stap -DMAXACTION=100000 -b -o $tmpfile $test} res]} {
untested $TEST_NAME
puts "stap failed: $res"
- catch {eval [list exec sudo /bin/rm -f] [glob ${tmpfile}*]}
+ as_root {/bin/rm -f [glob ${tmpfile}*]}
return
}
if {[catch {eval [list exec $stap_merge_path -o $tmpfile] [glob "${tmpfile}_*"]} res]} {
puts "merge failed: $res"
fail "$TEST_NAME failed"
- catch {eval [list exec sudo /bin/rm -f] [glob ${tmpfile}*]}
+ as_root {/bin/rm -f [glob ${tmpfile}*]}
return
}
if {[catch {exec cmp $tmpfile $srcdir/$subdir/large_output} res]} {
puts "$res"
fail "$TEST_NAME failed"
- catch {eval [list exec sudo /bin/rm -f] [glob ${tmpfile}*]}
+ as_root {/bin/rm -f [glob ${tmpfile}*]}
return
}
pass "$TEST_NAME passed"
-catch {eval [list exec sudo /bin/rm -f] [glob ${tmpfile}*]}
+as_root {/bin/rm -f [glob ${tmpfile}*]}
diff --git a/testsuite/systemtap.printf/out1b.exp b/testsuite/systemtap.printf/out1b.exp
index 0242dee6..723238c5 100644
--- a/testsuite/systemtap.printf/out1b.exp
+++ b/testsuite/systemtap.printf/out1b.exp
@@ -24,24 +24,24 @@ if {[catch {exec mktemp -t staptestXXXXX} tmpfile]} {
if {[catch {exec stap -b -o $tmpfile $test} res]} {
untested $TEST_NAME
puts "stap failed: $res"
- catch {eval [list exec sudo /bin/rm -f] [glob ${tmpfile}*]}
+ as_root {/bin/rm -f [glob ${tmpfile}*]}
return
}
if {[catch {eval [list exec $stap_merge_path -o $tmpfile] [glob "${tmpfile}_*"]} res]} {
puts "merge failed: $res"
fail "$TEST_NAME failed"
- catch {eval [list exec sudo /bin/rm -f] [glob ${tmpfile}*]}
+ as_root {/bin/rm -f [glob ${tmpfile}*]}
return
}
if {[catch {exec cmp $tmpfile $srcdir/$subdir/large_output} res]} {
puts "$res"
fail "$TEST_NAME failed"
- catch {eval [list exec sudo /bin/rm -f] [glob ${tmpfile}*]}
+ as_root {/bin/rm -f [glob ${tmpfile}*]}
return
}
pass "$TEST_NAME passed"
-catch {eval [list exec sudo /bin/rm -f] [glob ${tmpfile}*]}
+as_root {/bin/rm -f [glob ${tmpfile}*]}
diff --git a/testsuite/systemtap.printf/out2b.exp b/testsuite/systemtap.printf/out2b.exp
index be050854..085cfa14 100644
--- a/testsuite/systemtap.printf/out2b.exp
+++ b/testsuite/systemtap.printf/out2b.exp
@@ -24,24 +24,24 @@ if {[catch {exec mktemp -t staptestXXXXX} tmpfile]} {
if {[catch {exec stap -b -o $tmpfile $test} res]} {
untested $TEST_NAME
puts "stap failed: $res"
- catch {eval [list exec sudo /bin/rm -f] [glob ${tmpfile}*]}
+ as_root {/bin/rm -f [glob ${tmpfile}*]}
return
}
if {[catch {eval [list exec $stap_merge_path -o $tmpfile] [glob "${tmpfile}_*"]} res]} {
puts "merge failed: $res"
fail "$TEST_NAME failed"
- catch {eval [list exec sudo /bin/rm -f] [glob ${tmpfile}*]}
+ as_root {/bin/rm -f [glob ${tmpfile}*]}
return
}
if {[catch {exec cmp $tmpfile $srcdir/$subdir/large_output} res]} {
puts "$res"
fail "$TEST_NAME failed"
- catch {eval [list exec sudo /bin/rm -f] [glob ${tmpfile}*]}
+ as_root {/bin/rm -f [glob ${tmpfile}*]}
return
}
pass "$TEST_NAME passed"
-catch {eval [list exec sudo /bin/rm -f] [glob ${tmpfile}*]}
+as_root {/bin/rm -f [glob ${tmpfile}*]}
diff --git a/testsuite/systemtap.printf/out3b.exp b/testsuite/systemtap.printf/out3b.exp
index 2d2b3d0b..395363fc 100644
--- a/testsuite/systemtap.printf/out3b.exp
+++ b/testsuite/systemtap.printf/out3b.exp
@@ -24,24 +24,24 @@ if {[catch {exec mktemp -t staptestXXXXX} tmpfile]} {
if {[catch {exec stap -DMAXACTION=100000 -b -o $tmpfile $test} res]} {
untested $TEST_NAME
puts "stap failed: $res"
- catch {eval [list exec sudo /bin/rm -f] [glob ${tmpfile}*]}
+ as_root {/bin/rm -f [glob ${tmpfile}*]}
return
}
if {[catch {eval [list exec $stap_merge_path -o $tmpfile] [glob "${tmpfile}_*"]} res]} {
puts "merge failed: $res"
fail "$TEST_NAME failed"
- catch {eval [list exec sudo /bin/rm -f] [glob ${tmpfile}*]}
+ as_root {/bin/rm -f [glob ${tmpfile}*]}
return
}
if {[catch {exec cmp $tmpfile $srcdir/$subdir/large_output} res]} {
puts "$res"
fail "$TEST_NAME failed"
- catch {eval [list exec sudo /bin/rm -f] [glob ${tmpfile}*]}
+ as_root {/bin/rm -f [glob ${tmpfile}*]}
return
}
pass "$TEST_NAME passed"
-catch {eval [list exec sudo /bin/rm -f] [glob ${tmpfile}*]}
+as_root {/bin/rm -f [glob ${tmpfile}*]}