* Re: [LTP] [PATCH] clock_getres/clock_getres01.c: cleanup
[not found] <1383710112.1600.3.camel@localhost>
@ 2013-11-06 12:53 ` chrubis
0 siblings, 0 replies; only message in thread
From: chrubis @ 2013-11-06 12:53 UTC (permalink / raw)
To: zenglg.jy; +Cc: ltp-list
Hi!
> Fix the messy testcase of clock_getres01.c
>
> Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
That's better that the previous state but there are still some things to
fix:
1. The options are unused (opt_debug is only set and never used)
we can strip all the custom option parsing and remove the usage()
function and add LTP standard:
char *msg;
if ((msg = parse_opts(ac, av, NULL, NULL)) != NULL)
tst_brkm(TBROK, NULL, "OPTION PARSING ERROR - %s", msg);
2. Does the test really need to create temporary directory?
It does not seem to create any files, so we can remove the
tst_tmpdir() and tst_rmdir() in cleanup() and setup().
Also I would sanitize the comments in test header so that the ending */ does
not overflow 80 chars and end up on the same column. (May need to move the word Foundation to the previous line)
--
Cyril Hrubis
chrubis@suse.cz
------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
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:[~2013-11-06 16:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1383710112.1600.3.camel@localhost>
2013-11-06 12:53 ` [LTP] [PATCH] clock_getres/clock_getres01.c: cleanup chrubis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox