This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug testsuite/4329] systemtap.samples/sysopen test fails on several arch's
- From: "srinivasa at in dot ibm dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 1 May 2007 07:16:17 -0000
- Subject: [Bug testsuite/4329] systemtap.samples/sysopen test fails on several arch's
- References: <20070406180820.4329.dwilder@us.ibm.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From srinivasa at in dot ibm dot com 2007-05-01 08:16 -------
In ppc64 arch, we used to see bug.
Reason:- src/testsuite/systemtap.samples/sysopen.exp script executes
sysopen.stp, which inturn prints how many number of files were opened in 10000
ms. Then expect script expects atleat 2 files to be opened in this time.
=============================================
[root@llm27lp1 stap_testing_200705010601]# cat
src/testsuite/systemtap.samples/sysopen.exp
set test "sysopen"
if {![installtest_p]} { untested $test; return }
spawn stap $srcdir/$subdir/sysopen.stp
set ok 0
expect {
-timeout 60 -re {.* opened .*\r} { incr ok; exp_continue }
timeout { fail "$test (timeout)" }
eof { }
}
#FIXME does not handle case of hanging sysopen.stp correctly
wait
if {$ok > 1} { pass "$test ($ok)" } { fail "$test ($ok)" }
==========================================
But in ppc64 only one file was getting opened. So we are getting this error.
===================================================
Running
/home/systemtap/tmp/stap_testing_200704300942/src/testsuite/systemtap.samples/sysopen.exp
...
irqbalance opened /proc/interrupts
FAIL: sysopen (1)
=================================
After increasing the time value for sysopen.stp from 10000 ms to 20000 ms,
sysopen.stp opens 2 files and sysopen.exp passes.
============================================
Running
/home/systemtap/tmp/stap_testing_200705010601/src/testsuite/systemtap.samples/sysopen.exp
...
irqbalance opened /proc/interrupts
irqbalance opened /proc/interrupts
PASS: sysopen (2)
=======================================
So Solution would be :- To either increase the time amount in sysopen.stp or
decrease the number of counts in sysopen.exp.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=4329
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.