summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/filesystems
diff options
context:
space:
mode:
authorKarthik Alapati <mail@karthek.com>2022-04-23 08:44:34 +0300
committerShuah Khan <skhan@linuxfoundation.org>2022-04-25 19:04:42 +0300
commitea1d15a067d601cf156c042bd0834acad67db650 (patch)
tree63e2e6f8c70f2453e32a0bcd032f8fdb3929f50d /tools/testing/selftests/filesystems
parentabd26d348b2a366f8947e8c3c2ab9bc881ac9415 (diff)
downloadlinux-ea1d15a067d601cf156c042bd0834acad67db650.tar.xz
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. Signed-off-by: Karthik Alapati <mail@karthek.com> Reviewed-by: Christian Brauner (Microsoft) <brauner@kernel.org> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/testing/selftests/filesystems')
-rw-r--r--tools/testing/selftests/filesystems/binderfs/binderfs_test.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/testing/selftests/filesystems/binderfs/binderfs_test.c b/tools/testing/selftests/filesystems/binderfs/binderfs_test.c
index 0315955ff0f4..bc1c407651fc 100644
--- a/tools/testing/selftests/filesystems/binderfs/binderfs_test.c
+++ b/tools/testing/selftests/filesystems/binderfs/binderfs_test.c
@@ -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++) {