With follow-up commit we'll rework/remove the macro, where the new
version does not allow for providing the return value.
Swap it for a manual ERR, printing a more useful error message.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/375
Signed-off-by: Lucas De Marchi <ldemarchi@kernel.org>
progname = argv[0];
/* An empty testsuite is not likely intended */
- assert_return(start != stop, -EINVAL);
+ if (start == stop) {
+ ERR("Empty testsuite found. Did the compiler toolchain discard them?\n");
+ return -EINVAL;
+ }
for (;;) {
int c, idx = 0;