In tst_tmpdir(), it will call tst_brkm() with tmpdir_cleanup() as cleanup func,
but tmpdir_cleanup also() calls tst_brkm(), this will result in stack overflow
finally, and also print too much noise about SIGABRT is caught(see abort() in
tst_brkm_()), fix this.

Steps to reproduce this issue:
1. cd testcases/kernel/syscalls/access
2. mkdir testdir
3. su another_user
4. export TMPDIR=testdir
5. ./access05

Signed-off-by: Xiaoguang Wang <[email protected]>
---
 lib/tst_tmpdir.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/tst_tmpdir.c b/lib/tst_tmpdir.c
index 600d178..8cbd89c 100644
--- a/lib/tst_tmpdir.c
+++ b/lib/tst_tmpdir.c
@@ -236,7 +236,7 @@ void tst_rmdir(void)
  */
 static void tmpdir_cleanup(void)
 {
-       tst_brkm(TWARN, NULL,
+       tst_resm(TWARN,
                 "%s: no user cleanup function called before exiting",
                 __func__);
 }
-- 
1.8.2.1


------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to