Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Karthik Alapati and committed by
Shuah Khan
ea1d15a0 abd26d34

+2 -1
+2 -1
tools/testing/selftests/filesystems/binderfs/binderfs_test.c
··· 412 412 413 413 ret = mount(NULL, binderfs_mntpt, "binder", 0, 0); 414 414 ASSERT_EQ(ret, 0) { 415 - TH_LOG("%s - Failed to mount binderfs", strerror(errno)); 415 + TH_LOG("%s - Failed to mount binderfs, check if CONFIG_ANDROID_BINDERFS is enabled in the running kernel", 416 + strerror(errno)); 416 417 } 417 418 418 419 for (int i = 0; i < ARRAY_SIZE(fds); i++) {