Commit 37dbb4c
kunit: Don't crash if no parameters are generated
It's possible that a parameterised test could end up with zero
parameters. At the moment, the test function will nevertheless be called
with NULL as the parameter. Instead, don't try to run the test code, and
just mark the test as SKIPped.
Reported-by: Daniel Latypov <dlatypov@google.com>
Signed-off-by: David Gow <davidgow@google.com>
Reviewed-by: Daniel Latypov <dlatypov@google.com>
Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>1 parent e56e482 commit 37dbb4c
1 file changed
Lines changed: 10 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
504 | 504 | | |
505 | 505 | | |
506 | 506 | | |
507 | | - | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
508 | 512 | | |
509 | 513 | | |
510 | 514 | | |
511 | | - | |
512 | 515 | | |
513 | | - | |
514 | | - | |
| 516 | + | |
| 517 | + | |
515 | 518 | | |
516 | | - | |
517 | 519 | | |
518 | 520 | | |
519 | 521 | | |
| |||
530 | 532 | | |
531 | 533 | | |
532 | 534 | | |
533 | | - | |
534 | 535 | | |
535 | | - | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
536 | 539 | | |
537 | | - | |
538 | 540 | | |
539 | 541 | | |
540 | 542 | | |
| |||
0 commit comments