hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/tools/testing/selftests/tc-testing/tc-tests/actions/simple.json
....@@ -126,5 +126,30 @@
126126 "teardown": [
127127 ""
128128 ]
129
+ },
130
+ {
131
+ "id": "b776",
132
+ "name": "Replace simple action with invalid goto chain control",
133
+ "category": [
134
+ "actions",
135
+ "simple"
136
+ ],
137
+ "setup": [
138
+ [
139
+ "$TC actions flush action simple",
140
+ 0,
141
+ 1,
142
+ 255
143
+ ],
144
+ "$TC actions add action simple sdata \"hello\" pass index 90"
145
+ ],
146
+ "cmdUnderTest": "$TC actions replace action simple sdata \"world\" goto chain 42 index 90 cookie c1a0c1a0",
147
+ "expExitCode": "255",
148
+ "verifyCmd": "$TC actions list action simple",
149
+ "matchPattern": "action order [0-9]*: Simple <hello>.*index 90 ref",
150
+ "matchCount": "1",
151
+ "teardown": [
152
+ "$TC actions flush action simple"
153
+ ]
129154 }
130155 ]