From: Michal Simek <[email protected]> The same reason as was in previous patch for tmpfs
Signed-off-by: Michal Simek <[email protected]> --- testcases/kernel/syscalls/fcntl/fcntl24.c | 8 ++++++++ testcases/kernel/syscalls/fcntl/fcntl25.c | 8 ++++++++ testcases/kernel/syscalls/fcntl/fcntl26.c | 8 ++++++++ 3 files changed, 24 insertions(+), 0 deletions(-) diff --git a/testcases/kernel/syscalls/fcntl/fcntl24.c b/testcases/kernel/syscalls/fcntl/fcntl24.c index 1a524bb..af0e814 100644 --- a/testcases/kernel/syscalls/fcntl/fcntl24.c +++ b/testcases/kernel/syscalls/fcntl/fcntl24.c @@ -139,6 +139,14 @@ int main(int ac, char **av) "Cannot do fcntl on a file located on an TMPFS filesystem"); } + /* + * check if the current filesystem is ramfs + */ + if (tst_is_cwd_ramfs()) { + tst_brkm(TCONF, cleanup, + "Cannot do fcntl on a file located on an RAMFS filesystem"); + } + /* set the expected errnos... */ TEST_EXP_ENOS(exp_enos); diff --git a/testcases/kernel/syscalls/fcntl/fcntl25.c b/testcases/kernel/syscalls/fcntl/fcntl25.c index 9957dc4..6e2adc6 100644 --- a/testcases/kernel/syscalls/fcntl/fcntl25.c +++ b/testcases/kernel/syscalls/fcntl/fcntl25.c @@ -140,6 +140,14 @@ int main(int ac, char **av) "Cannot do fcntl on a file located on an TMPFS filesystem"); } + /* + * check if the current filesystem is ramfs + */ + if (tst_is_cwd_ramfs()) { + tst_brkm(TCONF, cleanup, + "Cannot do fcntl on a file located on an RAMFS filesystem"); + } + /* set the expected errnos... */ TEST_EXP_ENOS(exp_enos); diff --git a/testcases/kernel/syscalls/fcntl/fcntl26.c b/testcases/kernel/syscalls/fcntl/fcntl26.c index 5c4f4e4..df22063 100644 --- a/testcases/kernel/syscalls/fcntl/fcntl26.c +++ b/testcases/kernel/syscalls/fcntl/fcntl26.c @@ -140,6 +140,14 @@ int main(int ac, char **av) "Cannot do fcntl on a file located on an TMPFS filesystem"); } + /* + * check if the current filesystem is ramfs + */ + if (tst_is_cwd_ramfs()) { + tst_brkm(TCONF, cleanup, + "Cannot do fcntl on a file located on an RAMFS filesystem"); + } + /* set the expected errnos... */ TEST_EXP_ENOS(exp_enos); -- 1.5.5.1 ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
