For ltp-full-20101031, for fail log:
root:/> mount03 -D /dev/sdb1
mount03 1 TBROK : stat for setuid_test failed
mount03 2 TBROK : Remaining cases broken
mount03 3 TBROK : Remaining cases broken
mount03 4 TBROK : Remaining cases broken
mount03 5 TBROK : Remaining cases broken
mount03 6 TBROK : Remaining cases broken
Best regards,
Aaron Wu
--- testcases/kernel/syscalls/mount/mount03.c 2010-12-17
18:46:35.493493377 +0800
+++ testcases/kernel/syscalls/mount/mount03.new.c 2010-12-20
10:57:22.593492676 +0800
@@ -496,7 +496,11 @@
"errno = %d : %s", DIR_MODE, TEST_ERRNO,
strerror(TEST_ERRNO));
}
- snprintf(file, PATH_MAX, "%ssetuid_test", Path_name);
+
+ strcpy(testhome_path, test_home);
+ strcat(testhome_path, "/setuid_test");
+
+ snprintf(file, PATH_MAX, "%s", testhome_path);
if (stat(file, &setuid_test_stat) < 0) {
tst_brkm(TBROK, cleanup, "stat for setuid_test failed");
} else {
@@ -518,9 +522,6 @@
*/
snprintf(Path_name, PATH_MAX, "%s/%s/", Path_name, mntpoint);
- strcpy(testhome_path, test_home);
-
- strcat(testhome_path, "/setuid_test");
/* Pause if that option was specified */
TEST_PAUSE;
------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list