This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: [Bug testsuite/13977] rlimit tests fail as-root portions
- From: Hien Nguyen <hien at linux dot vnet dot ibm dot com>
- To: systemtap at sourceware dot org
- Date: Thu, 20 Jun 2013 13:24:17 -0700
- Subject: Re: [Bug testsuite/13977] rlimit tests fail as-root portions
- References: <bug-13977-6586 at http dot sourceware dot org/bugzilla/> <bug-13977-6586-nrpuOU5NnP at http dot sourceware dot org/bugzilla/>
I modified the test case to run the rlimit-stack=1 as non-root - and got
the correct behavior.
--- systemtap.base/rlimit.exp.orig 2013-06-20 20:15:26.641001019 -0400
+++ systemtap.base/rlimit.exp 2013-06-20 20:12:36.795000227 -0400
@@ -127,7 +127,7 @@
# Small STACK limit
set test "rlimit STACK small"
-if {[catch { exec stap --rlimit-stack=1 -p4 $srcdir/$subdir/rlimit.stp}
res ]} {
+if {[as_non_root "stap --rlimit-stack=1 -p4 $srcdir/$subdir/rlimit.stp"
]} {
pass $test
} else {
fail $test
On 06/20/2013 10:30 AM, fche at redhat dot com wrote:
http://sourceware.org/bugzilla/show_bug.cgi?id=13977
Frank Ch. Eigler <fche at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fche at redhat dot com
--- Comment #2 from Frank Ch. Eigler <fche at redhat dot com> ---
Perhaps we should simply disable the as-root variants of the tests, given that
some of the rlimits are not enforced against root by the kernel.