Skip to content

Commit 90f8032

Browse files
committed
Rewrite msgstress testing suite
msgstress testing suite has been rewritten, taking in consideration that old code was not working most of the times. The new algorithm simply generates new SysV IPC messages, spawning a sender and a receiver which will validate data. With the new algorithm we also reduce the amount of children which we spawn, since we only have 2: sender and receiver. This permits to increase the number of messages to send and to do not be depedent from system overload. Signed-off-by: Andrea Cervesato <[email protected]> Signed-off-by: Cyril Hrubis <[email protected]> Reviewed-by: Cyril Hrubis <[email protected]>
1 parent 703406b commit 90f8032

File tree

8 files changed

+213
-1417
lines changed

8 files changed

+213
-1417
lines changed

runtest/syscalls

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -865,12 +865,10 @@ msgctl03 msgctl03
865865
msgctl04 msgctl04
866866
msgctl05 msgctl05
867867
msgctl06 msgctl06
868-
msgstress01 msgstress01
869-
msgstress02 msgstress02
870-
msgstress03 msgstress03
871-
msgstress04 msgstress04
872868
msgctl12 msgctl12
873869

870+
msgstress01 msgstress01
871+
874872
msgget01 msgget01
875873
msgget02 msgget02
876874
msgget03 msgget03

runtest/syscalls-ipc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@ msgctl03 msgctl03
44
msgctl04 msgctl04
55
msgctl05 msgctl05
66
msgctl06 msgctl06
7-
msgstress01 msgstress01
8-
msgstress02 msgstress02
9-
msgstress03 msgstress03
10-
msgstress04 msgstress04
117
msgctl12 msgctl12
128

9+
msgstress01 msgstress01
10+
1311
msgget01 msgget01
1412
msgget02 msgget02
1513
msgget03 msgget03
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
11
/msgstress01
2-
/msgstress02
3-
/msgstress03
4-
/msgstress04

testcases/kernel/syscalls/ipc/msgstress/Makefile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,5 @@
33

44
top_srcdir ?= ../../../../..
55

6-
LTPLIBS = ltpipc
7-
86
include $(top_srcdir)/include/mk/testcases.mk
9-
10-
LTPLDLIBS += -lltpipc
11-
127
include $(top_srcdir)/include/mk/generic_leaf_target.mk

0 commit comments

Comments
 (0)