<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1488503701918_28712"><span>Hi,</span></div><div id="yui_3_16_0_ym19_1_1488503701918_28712"><span><br></span></div><div id="yui_3_16_0_ym19_1_1488503701918_28712"><span id="yui_3_16_0_ym19_1_1488503701918_28738">Sorry I for spam. I missed LTP in the subject. Please ignore this. I sent another mail.</span></div><div class="qtdSeparateBR" id="yui_3_16_0_ym19_1_1488503701918_28713"><br>Best regards,</div><div class="qtdSeparateBR" id="yui_3_16_0_ym19_1_1488503701918_28713"><br></div><div class="qtdSeparateBR" id="yui_3_16_0_ym19_1_1488503701918_28713">Hoang</div><div class="yahoo_quoted" id="yui_3_16_0_ym19_1_1488503701918_28742" style="display: block;"> <div style="font-family: Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" id="yui_3_16_0_ym19_1_1488503701918_28741"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif; font-size: 16px;" id="yui_3_16_0_ym19_1_1488503701918_28740"> <div dir="ltr" id="yui_3_16_0_ym19_1_1488503701918_28739"> <font size="2" face="Arial" id="yui_3_16_0_ym19_1_1488503701918_28743"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> "the_hoang0709@yahoo.com" <the_hoang0709@yahoo.com><br> <b><span style="font-weight: bold;">To:</span></b> ltp@lists.linux.it <br><b><span style="font-weight: bold;">Cc:</span></b> the_hoang0709@yahoo.com<br> <b><span style="font-weight: bold;">Sent:</span></b> Friday, 3 March 2017, 8:18<br> <b><span style="font-weight: bold;">Subject:</span></b> [PATCH v2] min_free_kbytes: Check panic_on_oom in advance<br> </font> </div> <div class="y_msg_container" id="yui_3_16_0_ym19_1_1488503701918_28744"><br>From: Hoang Nguyen <<a ymailto="mailto:the_hoang0709@yahoo.com" href="mailto:the_hoang0709@yahoo.com">the_hoang0709@yahoo.com</a>><br><br>Testcase usually trigger reset if panic_on_oom is enabled by default.<br>Add panic_on_oom checking before running.<br><br>Signed-off-by: Hoang Nguyen <<a ymailto="mailto:the_hoang0709@yahoo.com" href="mailto:the_hoang0709@yahoo.com">the_hoang0709@yahoo.com</a>><br>---<br> testcases/kernel/mem/tunable/min_free_kbytes.c | 5 +++++<br> 1 file changed, 5 insertions(+)<br><br>diff --git a/testcases/kernel/mem/tunable/min_free_kbytes.c b/testcases/kernel/mem/tunable/min_free_kbytes.c<br>index cb00f40..1f6fc8f 100644<br>--- a/testcases/kernel/mem/tunable/min_free_kbytes.c<br>+++ b/testcases/kernel/mem/tunable/min_free_kbytes.c<br>@@ -239,6 +239,11 @@ static void sighandler(int signo LTP_ATTRIBUTE_UNUSED)<br> void setup(void)<br> {<br> tst_require_root();<br>+ if (get_sys_tune("panic_on_oom")) {<br>+ tst_brkm(TCONF, NULL,<br>+ "panic_on_oom is set, disable it to run these testcases");<br>+ }<br>+<br> tst_sig(FORK, DEF_HANDLER, cleanup);<br> TEST_PAUSE;<br> <br>-- <br>2.7.4<br><br><br><br></div> </div> </div> </div></div></body></html>