[LTP] [PATCH] tst_test.h: fix tst_test->tid for unsupported cases

Cyril Hrubis chrubis@suse.cz
Wed Aug 17 11:29:38 CEST 2016


Hi!
> >  #define TST_TEST_TCONF(message)                                           \
> >  	static void tst_do_test(void) { tst_brk(TCONF, "%s", message); }; \
> > -        static struct tst_test test = { .test_all = tst_do_test }         \
> > -
> > +	static struct tst_test test = { .test_all = tst_do_test,          \
> > +					.tid = "tst_test_conf" }          \
> 
> I guess that a little better solution would be to pass the test id to
> the TST_TEST_TCONF() macro as well. I will fix that.

Hmm, we do not print the tid in case of TCONF, I thought we did, so we
can proceed with your patch as well.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list