All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [RFC] usctest cleanup
@ 2015-01-28 17:09 Cyril Hrubis
  0 siblings, 0 replies; only message in thread
From: Cyril Hrubis @ 2015-01-28 17:09 UTC (permalink / raw)
  To: ltp-list

Hi!
I'm investigating usefullnes of the few macros that are in the usctest.h
header.

The TEST_CLEANUP does nothing unless the test gets -e parameter, which
does not happen by default anyway.

And even if the the option is passed it does not work unless the test
sets expected errnos with TEST_EXP_ENOS() and logs errnos from the calls
with TEST_ERROR_LOG(), which seems to be the case only for about 250 out
of the thousands testcases we have.

And even if the code would have been working the usefulness is
questionable. The errno values are checked troughly in the testcases and
there is no need to print a summary at the test exit.

So unless anybody objects I would like to remove these three macros.

Then there is a TEST_PAUSE macro that expands to usc_global_setup_hook()
and which is used in nearly all setup functions. What it does it stop
the test in the setup in pause() waiting for SIGUSR1 if option -p has
been passed to the test and can change the program break with the
sbrk(). Has anyone ever used that or we can remove that as well?

-- 
Cyril Hrubis
chrubis@suse.cz

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-01-28 17:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-28 17:09 [LTP] [RFC] usctest cleanup Cyril Hrubis

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.