[LTP] [PATCH 15/31] mlockall: Remove UCLINUX

Petr Vorel pvorel@suse.cz
Thu Apr 11 16:30:09 CEST 2024


Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
 testcases/kernel/syscalls/mlockall/mlockall01.c | 12 ------------
 testcases/kernel/syscalls/mlockall/mlockall02.c | 12 ------------
 testcases/kernel/syscalls/mlockall/mlockall03.c | 12 ------------
 3 files changed, 36 deletions(-)

diff --git a/testcases/kernel/syscalls/mlockall/mlockall01.c b/testcases/kernel/syscalls/mlockall/mlockall01.c
index fa43dad33..50cdfc256 100644
--- a/testcases/kernel/syscalls/mlockall/mlockall01.c
+++ b/testcases/kernel/syscalls/mlockall/mlockall01.c
@@ -75,8 +75,6 @@ void cleanup();
 char *TCID = "mlockall01";
 int TST_TOTAL = 3;
 
-#if !defined(UCLINUX)
-
 struct test_case_t {
 	int flag;
 	char *fdesc;
@@ -127,16 +125,6 @@ int main(int ac, char **av)
 	tst_exit();
 }
 
-#else
-
-int main(void)
-{
-	tst_resm(TINFO, "test is not available on uClinux");
-	tst_exit();
-}
-
-#endif
-
 /*
  * setup() - performs all ONE TIME setup for this test.
  */
diff --git a/testcases/kernel/syscalls/mlockall/mlockall02.c b/testcases/kernel/syscalls/mlockall/mlockall02.c
index 94d6e3270..6524cb4a8 100644
--- a/testcases/kernel/syscalls/mlockall/mlockall02.c
+++ b/testcases/kernel/syscalls/mlockall/mlockall02.c
@@ -99,8 +99,6 @@ struct test_case_t {
 	0, EINVAL, "Unknown flag"}
 };
 
-#if !defined(UCLINUX)
-
 int main(int ac, char **av)
 {
 	int lc, i;
@@ -258,13 +256,3 @@ void cleanup(void)
 {
 	return;
 }
-
-#else
-
-int main(void)
-{
-	tst_resm(TINFO, "test is not available on uClinux");
-	tst_exit();
-}
-
-#endif /* if !defined(UCLINUX) */
diff --git a/testcases/kernel/syscalls/mlockall/mlockall03.c b/testcases/kernel/syscalls/mlockall/mlockall03.c
index 7418dd64d..a505891fc 100644
--- a/testcases/kernel/syscalls/mlockall/mlockall03.c
+++ b/testcases/kernel/syscalls/mlockall/mlockall03.c
@@ -92,8 +92,6 @@ void cleanup();
 char *TCID = "mlockall03";
 int TST_TOTAL = 3;
 
-#if !defined(UCLINUX)
-
 char *ref_release = "2.6.8\0";
 
 struct test_case_t {
@@ -286,16 +284,6 @@ void cleanup_test(int i)
 	}
 }
 
-#else
-
-int main(void)
-{
-	tst_resm(TINFO, "test is not available on uClinux");
-	tst_exit();
-}
-
-#endif /* if !defined(UCLINUX) */
-
 /*
  * cleanup() - performs all ONE TIME cleanup for this test at
  *		completion or premature exit.
-- 
2.43.0



More information about the ltp mailing list