summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2021-11-24 14:39:16 -0800
committerShuah Khan <skhan@linuxfoundation.org>2021-12-10 16:46:01 -0700
commit3abedf4646fdc0036fcb8ebbc3b600667167fafe (patch)
treefa08b4d3208d94179076273c2ffa0a09aca78130 /scripts/gdb/linux
parente5992f373c6eed6d09e5858e9623df1259b3ce30 (diff)
selftests: harness: avoid false negatives if test has no ASSERTs
Test can fail either immediately when ASSERT() failed or at the end if one or more EXPECT() was not met. The exact return code is decided based on the number of successful ASSERT()s. If test has no ASSERT()s, however, the return code will be 0, as if the test did not fail. Start counting ASSERT()s from 1. Fixes: 369130b63178 ("selftests: Enhance kselftest_harness.h to print which assert failed") Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'scripts/gdb/linux')
0 files changed, 0 insertions, 0 deletions