summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/mm
diff options
context:
space:
mode:
authorRyan Roberts <ryan.roberts@arm.com>2024-04-24 13:53:01 +0300
committerAndrew Morton <akpm@linux-foundation.org>2024-05-06 03:53:51 +0300
commit4673ad3bdca2678a8970c0076aa07f5302d914fb (patch)
treeff9c31f281d0c3823734bb9d44638688cdd1a87e /tools/testing/selftests/mm
parent21e516b913c137cf955e50359e499c0994d4b9a9 (diff)
downloadlinux-4673ad3bdca2678a8970c0076aa07f5302d914fb.tar.xz
selftests/mm: soft-dirty should fail if a testcase fails
Previously soft-dirty was unconditionally exiting with success, even if one of its testcases failed. Let's fix that so that failure can be reported to automated systems properly. Link: https://lkml.kernel.org/r/20240424105301.3157695-1-ryan.roberts@arm.com Signed-off-by: Ryan Roberts <ryan.roberts@arm.com> Reviewed-by: Muhammad Usama Anjum <usama.anjum@collabora.com> Reviewed-by: David Hildenbrand <david@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools/testing/selftests/mm')
-rw-r--r--tools/testing/selftests/mm/soft-dirty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/mm/soft-dirty.c b/tools/testing/selftests/mm/soft-dirty.c
index 7dbfa53d93a0..bdfa5d085f00 100644
--- a/tools/testing/selftests/mm/soft-dirty.c
+++ b/tools/testing/selftests/mm/soft-dirty.c
@@ -209,5 +209,5 @@ int main(int argc, char **argv)
close(pagemap_fd);
- return ksft_exit_pass();
+ ksft_finished();
}