[Bug testsuite/13977] rlimit tests fail as-root portions
Hien Nguyen
hien@linux.vnet.ibm.com
Thu Jun 20 21:35:00 GMT 2013
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.
>
More information about the Systemtap
mailing list