[LTP] [PATCH v4 04/10] ioctl02: Rename option -D => -d
Petr Vorel
pvorel@suse.cz
Thu Dec 14 16:19:48 CET 2023
-D will be used for enabling debug info.
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
runtest/syscalls | 2 +-
testcases/kernel/syscalls/ioctl/ioctl02.c | 2 +-
testcases/kernel/syscalls/ioctl/test_ioctl | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/runtest/syscalls b/runtest/syscalls
index f723320c1..8216d86b0 100644
--- a/runtest/syscalls
+++ b/runtest/syscalls
@@ -557,7 +557,7 @@ init_module01 init_module01
init_module02 init_module02
#Needs tty device.
-#ioctl02 ioctl02 -D /dev/tty0
+#ioctl02 ioctl02 -d /dev/tty0
# Introducing ioctl tests for all /dev/tty* devices
ioctl01 ioctl01
diff --git a/testcases/kernel/syscalls/ioctl/ioctl02.c b/testcases/kernel/syscalls/ioctl/ioctl02.c
index ce0e6bdb8..9fbdd66a9 100644
--- a/testcases/kernel/syscalls/ioctl/ioctl02.c
+++ b/testcases/kernel/syscalls/ioctl/ioctl02.c
@@ -250,7 +250,7 @@ static struct tst_test test = {
.test_all = verify_ioctl,
.test_variants = 2,
.options = (struct tst_option[]) {
- {"D:", &device, "Tty device. For example, /dev/tty[0-9]"},
+ {"d:", &device, "Tty device. For example, /dev/tty[0-9]"},
{}
}
};
diff --git a/testcases/kernel/syscalls/ioctl/test_ioctl b/testcases/kernel/syscalls/ioctl/test_ioctl
index 43836a229..8549e5608 100755
--- a/testcases/kernel/syscalls/ioctl/test_ioctl
+++ b/testcases/kernel/syscalls/ioctl/test_ioctl
@@ -45,7 +45,7 @@ case "$device_no" in
continue
fi
tst_resm TINFO "Testing ioctl02 with $tttype"
- ioctl02 -D $tttype
+ ioctl02 -d $tttype
RC=$?
if [ $RC -eq 0 ]
then
--
2.43.0
More information about the ltp
mailing list