[LTP] [PATCH] syscalls/ftruncate04: TCONF on kernels without MANDLOCK
Cyril Hrubis
chrubis@suse.cz
Thu Jun 9 16:42:38 CEST 2016
Hi!
Pushed with following change:
--- a/testcases/kernel/syscalls/ftruncate/ftruncate04.c
+++ b/testcases/kernel/syscalls/ftruncate/ftruncate04.c
@@ -253,9 +253,8 @@ static void setup(void)
tst_brkm(TCONF, cleanup, "Mandatory locking (likely) "
"not supported by this system");
} else {
- tst_brkm(TBROK, cleanup,
- "Remount with MS_MANDLOCK failed: %s",
- strerror(errno));
+ tst_brkm(TBROK | TERRNO, cleanup,
+ "Remount with MS_MANDLOCK failed");
}
}
}
Since in LTP we prefer TERRNO flag over strerror().
Thanks.
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list