linux-test-project / ltp

Linux Test Project (mailing list: https://lists.linux.it/listinfo/ltp)
https://linux-test-project.readthedocs.io/
GNU General Public License v2.0
2.3k stars 1.01k forks source link

Whether we still need tcon_msg member in tst_test struct #900

Closed xuyang0410 closed 2 years ago

xuyang0410 commented 2 years ago

If we set this member, then case will not run and it onlys compile. I don't see any case use this. It seems we can delete this member. Any idea?

metan-ucw commented 2 years ago

It's set by the TST_TEST_TCONF() macro that is usually used in tests as:

#ifdef FOO_H
#include <foo.h>

// test is implemented here

#else
TST_TEST_TCONF("foo library was missing during compilation");
#endif