From: Mike F. <va...@us...> - 2007-02-09 20:48:27
|
Update of /cvsroot/ltp/ltp/testcases/kernel/syscalls/lstat In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv9275/testcases/kernel/syscalls/lstat Modified Files: lstat02.c Log Message: random updates from Jane Lv for uClinux Index: lstat02.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/lstat/lstat02.c,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** lstat02.c 3 Aug 2006 05:21:24 -0000 1.8 --- lstat02.c 9 Feb 2007 20:48:23 -0000 1.9 *************** *** 116,121 **** } Test_cases[] = { { SFILE1, "No Search permissions to process", EACCES, setup1 }, - { (char *)-1, "Negative address", EFAULT, no_setup }, #if !defined(UCLINUX) { High_address_node, "Address beyond address space", EFAULT, no_setup }, #endif --- 116,121 ---- } Test_cases[] = { { SFILE1, "No Search permissions to process", EACCES, setup1 }, #if !defined(UCLINUX) + { (char *)-1, "Negative address", EFAULT, no_setup }, { High_address_node, "Address beyond address space", EFAULT, no_setup }, #endif *************** *** 127,131 **** char *TCID="lstat02"; /* Test program identifier. */ ! int TST_TOTAL = 6; /* Total number of test cases. */ extern int Tst_count; /* Test Case counter for tst_* routines */ int exp_enos[]={EACCES, EFAULT, ENAMETOOLONG, ENOENT, ENOTDIR, 0}; --- 127,131 ---- char *TCID="lstat02"; /* Test program identifier. */ ! int TST_TOTAL = sizeof(Test_cases) / sizeof(*Test_cases); /* Total number of test cases. */ extern int Tst_count; /* Test Case counter for tst_* routines */ int exp_enos[]={EACCES, EFAULT, ENAMETOOLONG, ENOENT, ENOTDIR, 0}; *************** *** 249,252 **** --- 249,253 ---- tst_tmpdir(); + #if !defined(UCLINUX) bad_addr = mmap(0, 1, PROT_NONE, MAP_PRIVATE_EXCEPT_UCLINUX|MAP_ANONYMOUS, 0, 0); *************** *** 254,261 **** tst_brkm(TBROK, cleanup, "mmap failed"); } - #if !defined(UCLINUX) Test_cases[2].pathname = bad_addr; - #else - Test_cases[1].pathname = bad_addr; #endif --- 255,259 ---- |