Hi!
> 
> ...
> 
> > You should use tst_brkm(TBROK|TERRNO, tst_exit, "mmap") here. As
> > tst_brkm() exits when pointer to cleanup is not NULL.
> 
> Actually, the exit should be dropped and the tst_brkm invocation
> should be left alone. When NULL is specified as the second argument to
> tst_brkm, it automatically calls tst_exit.

I would disagree here. 

man tst_res

...

If func is NULL, tst_brk() and tst_brkm return to the caller after all
results have been printed.

...



And the corresponding code in the lib/tst_res.c is

...

        if (func != NULL) {
                (*func)();
                tst_exit();
        }

}


Which seems like a dump interface to me, but once used this way in whole
LTP, we cannot easily change that.

-- 
Cyril Hrubis
[email protected]

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to