public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] msgstress SysV IPC testing suite
@ 2024-02-05 12:36 Andrea Cervesato via ltp
  2024-02-05 17:21 ` Petr Vorel
  0 siblings, 1 reply; 2+ messages in thread
From: Andrea Cervesato via ltp @ 2024-02-05 12:36 UTC (permalink / raw)
  To: ltp@lists.linux.it

Hi all,

I was taking a look msgstress testing suite that is supposed to stress 
the kernel SysV IPC.
It's a well known testing suite that used to randomly stuck or fail, due 
to the poorly written code.

I'm about to refactor its code, but I noticed that all 4 tests inside it 
(msgstress01-04) are basically implementing the same concept, if not the 
same code that looks copy-pasted.

We basically have 2 or more processes reading/writing messages into the 
SysV IPC at the same time.
If all messages are correctly sent and received, the test passes. The 
only difference is if these processes are spawned inside children or not.

So I have a quite obvious observation: our main goal is to stress the 
SysV IPC, so we can trigger a bug and it doesn't matter if this is done 
inside children or not.

I'm planning to remove all those tests and to write a new one following 
the main concept, but without the actual redundancy. What do you think?

Regards,
Andrea Cervesato


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

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

end of thread, other threads:[~2024-02-05 17:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-05 12:36 [LTP] msgstress SysV IPC testing suite Andrea Cervesato via ltp
2024-02-05 17:21 ` Petr Vorel

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