This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Patch]patch for some systemtap test cases failure
- From: "bibo,mao" <bibo dot mao at intel dot com>
- To: systemtap at sources dot redhat dot com
- Date: Mon, 06 Mar 2006 16:50:04 +0800
- Subject: [Patch]patch for some systemtap test cases failure
Hi,
This is patch for some indent.stp and args.exp test case failure. And I
tested in my IA64 box.
--- src/testsuite/buildok/indent.stp 2006-03-04 01:44:23.000000000 +0800
+++ /root/stap_testing_200603051706/src/testsuite/buildok/indent.stp
2006-03-06 08:42:02.000000000 +0800
@@ -1,3 +1,5 @@
+#! stap -p4
+
probe begin {
print (thread_indent (1)) print ("yo\n")
print (thread_indent (-1)) print ("ta\n")
--- tests/testsuite/systemtap.samples/args.exp 2006-02-26
05:09:05.000000000 +0800
+++
/root/stap_testing_200603051706/tests/testsuite/systemtap.samples/args.exp
2006-03-06 08:35:03.000000000 +0800
@@ -1,13 +1,18 @@
set test "args"
set stappath [exec which stap]
-set stpdpath [exec dirname $stappath]/../libexec/systemtap/stpd
+set stpdpath [exec dirname $stappath]/stpd
if [file exists $stpdpath] {
pass "$test search for stpd ($stpdpath)"
} else {
- fail "$test search for stpd"
- return
+ set stpdpath [exec dirname $stappath]/../libexec/systemtap/stpd
+ if [file exists $stpdpath] {
+ pass "$test search for stpd ($stpdpath)"
+ } else {
+ fail "$test search for stpd ($stpdpath)"
+ return
+ }
}
set modname "args_[pid]"