selftests/mm: soft-dirty should fail if a testcase fails
authorRyan Roberts <ryan.roberts@arm.com>
Wed, 24 Apr 2024 10:53:01 +0000 (11:53 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 6 May 2024 00:53:51 +0000 (17:53 -0700)
commit4673ad3bdca2678a8970c0076aa07f5302d914fb
treeff9c31f281d0c3823734bb9d44638688cdd1a87e
parent21e516b913c137cf955e50359e499c0994d4b9a9
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>
tools/testing/selftests/mm/soft-dirty.c