public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: Hien Nguyen <hien@linux.vnet.ibm.com>
To: systemtap@sourceware.org
Subject: Re: [Bug testsuite/13977] rlimit tests fail as-root portions
Date: Thu, 20 Jun 2013 21:35:00 -0000	[thread overview]
Message-ID: <51C364F1.9070801@linux.vnet.ibm.com> (raw)
In-Reply-To: <bug-13977-6586-nrpuOU5NnP@http.sourceware.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.
>

  reply	other threads:[~2013-06-20 21:35 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-12 20:54 [Bug testsuite/13977] New: " jistone at redhat dot com
2012-12-14 10:36 ` [Bug testsuite/13977] " mjw at redhat dot com
2013-06-20 17:30 ` fche at redhat dot com
2013-06-20 21:35   ` Hien Nguyen [this message]
2013-06-21 17:20 ` dsmith at redhat dot com
2013-06-21 18:14 ` mjw at redhat dot com
2013-06-21 18:15 ` jistone at redhat dot com
2013-06-21 18:29 ` jistone at redhat dot com
2013-06-21 21:57 ` dsmith at redhat dot com
2013-06-24 16:04 ` dsmith at redhat dot com
2013-06-24 16:10 ` dsmith at redhat dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51C364F1.9070801@linux.vnet.ibm.com \
    --to=hien@linux.vnet.ibm.com \
    --cc=systemtap@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).