linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1] selftests/mm: soft-dirty should fail if a testcase fails
@ 2024-04-24 10:53 Ryan Roberts
  0 siblings, 0 replies; only message in thread
From: Ryan Roberts @ 2024-04-24 10:53 UTC (permalink / raw)
  To: Andrew Morton, Shuah Khan
  Cc: Ryan Roberts, linux-mm, linux-kselftest, linux-kernel,
	Muhammad Usama Anjum, David Hildenbrand

Previously soft-dirty was unconditionally exiting with success, even if
one of it's testcases failed. Let's fix that so that failure can be
reported to automated systems properly.

Reviewed-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Ryan Roberts <ryan.roberts@arm.com>
---

Applies on top of v6.9-rc3.

I previously sent this out as part of a larger series [1]. Feedback was to
repost standalone.

[1] https://lore.kernel.org/all/20240419074344.2643212-1-ryan.roberts@arm.com/

Thanks,
Ryan


 tools/testing/selftests/mm/soft-dirty.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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();
 }
--
2.25.1



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-04-24 10:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-24 10:53 [PATCH v1] selftests/mm: soft-dirty should fail if a testcase fails Ryan Roberts

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox