From: Subrata M. <su...@li...> - 2008-04-22 07:07:55
|
Did this help you out in any way ? Regards-- Subrata On Mon, 2008-04-21 at 17:25 +0530, Subrata Modak wrote: > Hi, > > On Mon, 2008-04-21 at 12:35 +0100, Will Newton wrote: > > Hi, > > > > The Linux port I run on LTP has a minimal set of system calls. It > > currently does not implement the sysfs system call so I'd like to > > disable the tests for this system call - at the moment they will fail > > to compile because __NR_sysfs is undefined. Is there an idiomatic way > > of doing this? I can either prevent the test compiling completely > > See the way here we approach normally for system calls which are not > supported on some architecture, or, kernel version: > > http://ltp.cvs.sourceforge.net/ltp/ltp/testcases/kernel/syscalls/remap_file_pages/remap_file_pages01.c > > #if defined (__s390__) || (__s390x__) > /* Disables the test in case the kernel version is lower than > 2.6.12 and arch is s390 */ > if((tst_kvercmp(2, 6, 12)) < 0) > { > tst_resm(TWARN, "This test can only run on kernels that > are 2.6.12 and higher"); > exit(0); > } > #endif > > Hope this will help you to sort your issues. Also send us the fixes that > you generate for your LTP. > > Regards-- > Subrata > > > somehow in the Makefile (e.g. as modify_ldt does) or make the test > > compile but return BROK perhaps? > > > > Thanks, > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > > Don't miss this year's exciting event. There's still time to save $100. > > Use priority code J8TL2D2. > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > > _______________________________________________ > > Ltp-list mailing list > > Ltp...@li... > > https://lists.sourceforge.net/lists/listinfo/ltp-list > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Ltp-list mailing list > Ltp...@li... > https://lists.sourceforge.net/lists/listinfo/ltp-list |