public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH v7 0/5] Improve ioctl02.c
@ 2023-10-23 16:02 Marius Kittler
  2023-10-23 16:02 ` [LTP] [PATCH v7 1/5] Refactor ioctl02.c to use the new test API Marius Kittler
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Marius Kittler @ 2023-10-23 16:02 UTC (permalink / raw)
  To: ltp

I implemented the changes that were requested in the last review.
So I amended patch 1 and added patch 5.

I'm not sure how to write generic code in C (in C++ I would just
use templates). So I duplicated the functions that access the
members of the structs termio and termios to test both. Turning
these functions into huge multi-line macros would likely be the
worse choice.

Marius Kittler (5):
  Refactor ioctl02.c to use the new test API
  Make checks for termio flags more strict
  Remove disabled code in ioctl02.c
  Use termios instead of legacy struct in ioctl02.c
  Extend ioctl02 to test termio and termios

 testcases/kernel/syscalls/ioctl/ioctl02.c | 542 +++++++++-------------
 1 file changed, 214 insertions(+), 328 deletions(-)

-- 
2.42.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-10-25  9:51 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-23 16:02 [LTP] [PATCH v7 0/5] Improve ioctl02.c Marius Kittler
2023-10-23 16:02 ` [LTP] [PATCH v7 1/5] Refactor ioctl02.c to use the new test API Marius Kittler
2023-10-25  9:00   ` Cyril Hrubis
2023-10-23 16:02 ` [LTP] [PATCH v7 2/5] Make checks for termio flags more strict Marius Kittler
2023-10-23 16:02 ` [LTP] [PATCH v7 3/5] Remove disabled code in ioctl02.c Marius Kittler
2023-10-24 15:02   ` Martin Doucha
2023-10-23 16:02 ` [LTP] [PATCH v7 4/5] Use termios instead of legacy struct " Marius Kittler
2023-10-23 16:02 ` [LTP] [PATCH v7 5/5] Extend ioctl02 to test termio and termios Marius Kittler
2023-10-24 15:54   ` Martin Doucha
2023-10-25  9:51     ` Marius Kittler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox