[LTP] [PATCH] tst_device: add new tst_dev_sync

Cyril Hrubis chrubis@suse.cz
Thu Jan 9 10:49:16 CET 2020


Hi!
> The reason why not use tst_syscall() is that involves a new compile error
> of tst_brk, and it can not get rid of errors only via include tst_test.h
> file.

The problem is that the header is used both for old and new test API, so
until we convert the rest of the oldlib testcases we can't use anything
from the new library there.

We solve that in other places by ifdefs, such as:

#ifdef TST_TEST_H__
	tst_syscall(...);
#else
	ltp_syscall(...);
#endif


-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list