File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -167,13 +167,34 @@ static void test_prepare_array(struct kunit *test)
167
167
drm_exec_fini (& exec );
168
168
}
169
169
170
+ static void test_multiple_loops (struct kunit * test )
171
+ {
172
+ struct drm_exec exec ;
173
+
174
+ drm_exec_init (& exec , DRM_EXEC_INTERRUPTIBLE_WAIT );
175
+ drm_exec_until_all_locked (& exec )
176
+ {
177
+ break ;
178
+ }
179
+ drm_exec_fini (& exec );
180
+
181
+ drm_exec_init (& exec , DRM_EXEC_INTERRUPTIBLE_WAIT );
182
+ drm_exec_until_all_locked (& exec )
183
+ {
184
+ break ;
185
+ }
186
+ drm_exec_fini (& exec );
187
+ KUNIT_SUCCEED (test );
188
+ }
189
+
170
190
static struct kunit_case drm_exec_tests [] = {
171
191
KUNIT_CASE (sanitycheck ),
172
192
KUNIT_CASE (test_lock ),
173
193
KUNIT_CASE (test_lock_unlock ),
174
194
KUNIT_CASE (test_duplicates ),
175
195
KUNIT_CASE (test_prepare ),
176
196
KUNIT_CASE (test_prepare_array ),
197
+ KUNIT_CASE (test_multiple_loops ),
177
198
{}
178
199
};
179
200
You can’t perform that action at this time.
0 commit comments