Hello Sir,
For ltp-full-20101031, met a failure for the mount03 test, following is the
failure log, followed by my fix.
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;
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list