Skip to contentSkip to conversation

syscalls/memmap: Update to new api and move to syscalls/mmap

PATCH New Zhao Gongyi 2 participants 2 messages Apr 8, 2021 – Apr 21, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 syscalls/memmap: Update to new api and move to syscalls/mmap

1)move the only one mmap testcase from syscalls/memmap/mem03.c to syscalls/mmap/mmap19.c
2)update to new api.
3)add mmap19 to runtest/syscall.

---
 runtest/syscalls                            |   1 +
 testcases/kernel/syscalls/memmap/.gitignore |   1 -
 testcases/kernel/syscalls/memmap/Makefile   |   8 -
 testcases/kernel/syscalls/memmap/mem03.c    | 173 --------------------
 testcases/kernel/syscalls/mmap/.gitignore   |   1 +
 testcases/kernel/syscalls/mmap/mmap19.c     | 102 ++++++++++++
 6 files changed, 104 insertions(+), 182 deletions(-)
 delete mode 100644 testcases/kernel/syscalls/memmap/.gitignore
 delete mode 100644 testcases/kernel/syscalls/memmap/Makefile
 delete mode 100644 testcases/kernel/syscalls/memmap/mem03.c
 create mode 100644 testcases/kernel/syscalls/mmap/mmap19.c
runtest/syscalls +1 -0
index 2d1e7b648..546a988c2 100644
@@ -765,6 +765,7 @@ mmap15 mmap15
 mmap16 mmap16
 mmap17 mmap17
 mmap18 mmap18
+mmap19 mmap19
 
 modify_ldt01 modify_ldt01
 modify_ldt02 modify_ldt02
testcases/kernel/syscalls/memmap/.gitignore deleted +0 -1
deleted file mode 100644
index c4c684456..000000000
@@ -1 +0,0 @@
-/mem03
testcases/kernel/syscalls/memmap/Makefile deleted +0 -8
deleted file mode 100644
index 044619fb8..000000000
@@ -1,8 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0-or-later
-# Copyright (c) International Business Machines  Corp., 2001
-
-top_srcdir		?= ../../../..
-
-include $(top_srcdir)/include/mk/testcases.mk
-
-include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/kernel/syscalls/memmap/mem03.c deleted +0 -173

173 lines not on this page · raw message

testcases/kernel/syscalls/mmap/.gitignore +1 -0
index 4fd90ab5f..8811226be 100644
@@ -17,3 +17,4 @@
 /mmap16
 /mmap17
 /mmap18
+/mmap19
testcases/kernel/syscalls/mmap/mmap19.c new file +102 -0

102 lines not on this page · raw message

--
2.17.1

#1 lore raw

PATCH 1/1 syscalls/memmap: Update to new api and move to syscalls/mmap

Hi!
Pushed with minor changes, mostly fixes to the documentation comment, thanks.

Signature · 2 lines
Cyril Hrubis
[email protected]