From: Hoang Nguyen Date: Sun, 5 Mar 2017 04:02:52 +0000 (UTC) Subject: [LTP] [PATCH v2] min_free_kbytes: Check panic_on_oom in advance In-Reply-To: <20170303094557.GB17012@rei.lan> References: <1488504025-2007-1-git-send-email-the_hoang0709@yahoo.com> <20170303094557.GB17012@rei.lan> Message-ID: <1266931552.2209064.1488686572310@mail.yahoo.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: ltp@lists.linux.it Hi Cyril, Thanks. I'll fix it in new patch. Best regards, Hoang From: Cyril Hrubis To: the_hoang0709@yahoo.com Cc: ltp@lists.linux.it Sent: Friday, 3 March 2017, 16:45 Subject: Re: [LTP] [PATCH v2] min_free_kbytes: Check panic_on_oom in advance Hi! > Signed-off-by: Hoang Nguyen > --- >  testcases/kernel/mem/tunable/min_free_kbytes.c | 5 +++++ >  1 file changed, 5 insertions(+) > > diff --git a/testcases/kernel/mem/tunable/min_free_kbytes.c b/testcases/kernel/mem/tunable/min_free_kbytes.c > index cb00f40..1f6fc8f 100644 > --- a/testcases/kernel/mem/tunable/min_free_kbytes.c > +++ b/testcases/kernel/mem/tunable/min_free_kbytes.c > @@ -239,6 +239,11 @@ static void sighandler(int signo LTP_ATTRIBUTE_UNUSED) >  void setup(void) >  { >      tst_require_root(); > +    if (get_sys_tune("panic_on_oom")) { > +        tst_brkm(TCONF, NULL, > +            "panic_on_oom is set, disable it to run these testcases"); > +    } Now the indentation is wrong, please make sure to use tabs. FYI you can use checkpatch.pl from kernel git repo to check patches before sending them for review. -- Cyril Hrubis chrubis@suse.cz -------------- next part -------------- An HTML attachment was scrubbed... URL: