[PATCH 2/9] tests: Add check for printing of overlength strings to ioctl_dm test
Eugene Syromyatnikov
evgsyr at gmail.com
Tue Oct 11 22:38:19 UTC 2016
---
tests/ioctl_dm.c | 2 +-
tests/ioctl_dm.test | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/ioctl_dm.c b/tests/ioctl_dm.c
index 6ad4ea9..0a3bbf4 100644
--- a/tests/ioctl_dm.c
+++ b/tests/ioctl_dm.c
@@ -77,7 +77,7 @@ main(void)
printf("ioctl(-1, DM_DEV_SET_GEOMETRY, "
"{version=4.1.2, data_size=%u, data_start=%u, "
"dev=makedev(18, 52), name=\"nnn\", uuid=\"uuu\", flags=0, "
- "string=\"10 20 30 40\"}) = -1 EBADF (%m)\n",
+ "string=\"10 20 30 \"...}) = -1 EBADF (%m)\n",
s.ioc.data_size, s.ioc.data_start);
init_s(&s.ioc, sizeof(s), offsetof(struct s, u));
diff --git a/tests/ioctl_dm.test b/tests/ioctl_dm.test
index db77616..78866d3 100755
--- a/tests/ioctl_dm.test
+++ b/tests/ioctl_dm.test
@@ -5,7 +5,7 @@
. "${srcdir=.}/init.sh"
run_prog > /dev/null
-run_strace -a16 -veioctl $args > "$EXP"
+run_strace -a16 -s9 -veioctl $args > "$EXP"
check_prog grep
grep -v '^ioctl([012],' < "$LOG" > "$OUT"
match_diff "$OUT" "$EXP"
--
1.7.10.4
More information about the Strace-devel
mailing list