Skip to contentSkip to conversation

selftests/binderfs: Improve message to provide more info

PATCH In review Karthik Alapati 3 participants 3 messages Apr 23, 2022 – Apr 25, 2022 Kselftest

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 selftests/binderfs: Improve message to provide more info

Currently the binderfs test says what failure it encountered without saying why it may occurred when it fails to mount binderfs. So, Warn about enabling CONFIG_ANDROID_BINDERFS in the running kernel.

---
 tools/testing/selftests/filesystems/binderfs/binderfs_test.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
tools/testing/selftests/filesystems/binderfs/binderfs_test.c +2 -1
index 0315955ff0f4..bc1c407651fc 100644
@@ -412,7 +412,8 @@ TEST(binderfs_stress)
 
 		ret = mount(NULL, binderfs_mntpt, "binder", 0, 0);
 		ASSERT_EQ(ret, 0) {
-			TH_LOG("%s - Failed to mount binderfs", strerror(errno));
+			TH_LOG("%s - Failed to mount binderfs, check if CONFIG_ANDROID_BINDERFS is enabled in the running kernel",
+				strerror(errno));
 		}
 
 		for (int i = 0; i < ARRAY_SIZE(fds); i++) {
Signature · 1 line
2.35.2
maintainer
#2 lore raw
Quoted 11 lines · Christian Brauner
Quoted 7 lines · Karthik Alapati

Currently the binderfs test says what failure it encountered without saying why it may occurred when it fails to mount binderfs. So, Warn about enabling CONFIG_ANDROID_BINDERFS in the running kernel.

---

Thank you both - I will apply this for next to be included in Linux 5.19-rc1

thanks,
-- Shuah