[LTP] [PATCH 1/5] kcmp.h: move it to ltp include/lapi directory

Yang Xu xuyang2018.jy@fujitsu.com
Wed Feb 16 11:04:24 CET 2022


So other test case can call kcmp directly just include lapi/kcmp.h.

Signed-off-by: Yang Xu <xuyang2018.jy@fujitsu.com>
---
 {testcases/kernel/syscalls/kcmp => include/lapi}/kcmp.h | 0
 testcases/kernel/syscalls/kcmp/kcmp01.c                 | 2 +-
 testcases/kernel/syscalls/kcmp/kcmp02.c                 | 2 +-
 testcases/kernel/syscalls/kcmp/kcmp03.c                 | 2 +-
 4 files changed, 3 insertions(+), 3 deletions(-)
 rename {testcases/kernel/syscalls/kcmp => include/lapi}/kcmp.h (100%)

diff --git a/testcases/kernel/syscalls/kcmp/kcmp.h b/include/lapi/kcmp.h
similarity index 100%
rename from testcases/kernel/syscalls/kcmp/kcmp.h
rename to include/lapi/kcmp.h
diff --git a/testcases/kernel/syscalls/kcmp/kcmp01.c b/testcases/kernel/syscalls/kcmp/kcmp01.c
index a03a25a2b..903525ff0 100644
--- a/testcases/kernel/syscalls/kcmp/kcmp01.c
+++ b/testcases/kernel/syscalls/kcmp/kcmp01.c
@@ -15,7 +15,7 @@
 
 #include "tst_test.h"
 #include "lapi/fcntl.h"
-#include "kcmp.h"
+#include "lapi/kcmp.h"
 
 #define TEST_FILE "test_file"
 #define TEST_FILE2 "test_file2"
diff --git a/testcases/kernel/syscalls/kcmp/kcmp02.c b/testcases/kernel/syscalls/kcmp/kcmp02.c
index 993d9a4a4..ab07bb866 100644
--- a/testcases/kernel/syscalls/kcmp/kcmp02.c
+++ b/testcases/kernel/syscalls/kcmp/kcmp02.c
@@ -17,7 +17,7 @@
 
 #include "tst_test.h"
 #include "lapi/fcntl.h"
-#include "kcmp.h"
+#include "lapi/kcmp.h"
 
 #define TEST_FILE "test_file"
 #define TEST_FILE2 "test_file2"
diff --git a/testcases/kernel/syscalls/kcmp/kcmp03.c b/testcases/kernel/syscalls/kcmp/kcmp03.c
index df8633c5f..4b90e6d87 100644
--- a/testcases/kernel/syscalls/kcmp/kcmp03.c
+++ b/testcases/kernel/syscalls/kcmp/kcmp03.c
@@ -20,7 +20,7 @@
 #include <stdlib.h>
 #include <sys/wait.h>
 #include "tst_test.h"
-#include "kcmp.h"
+#include "lapi/kcmp.h"
 #include "lapi/sched.h"
 
 #define STACK_SIZE	(1024*1024)
-- 
2.23.0



More information about the ltp mailing list