linux-stable/tools/testing/selftests/arm64/mte
Andre Przywara 75347add03 kselftest/arm64: mte: Report filename on failing temp file creation
The MTE selftests create temporary files in /dev/shm, for later mmap-ing
them. When there is no tmpfs mounted on /dev/shm, or /dev/shm does not
exist in the first place (on minimal filesystems), the error message is
not giving good hints:
    # FAIL: Unable to open temporary file
    # FAIL: memory allocation
    not ok 17 Check initial tags with private mapping, ...

Add a perror() call, that gives both the filename and the actual error
reason, so that users get a chance of correcting that.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Mark Brown <broone@kernel.org>
Link: https://lore.kernel.org/r/20210319165334.29213-12-andre.przywara@arm.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
2021-03-24 15:43:20 +00:00
..
.gitignore kselftest/arm64: Check mte tagged user address in kernel 2020-10-05 18:52:17 +01:00
check_buffer_fill.c arm64: mte: style: Simplify bool comparison 2021-01-20 12:44:26 +00:00
check_child_memory.c kselftest/arm64: Fix check_child_memory test 2020-10-28 13:42:23 +00:00
check_gcr_el1_cswitch.c kselftest/arm64: check GCR_EL1 after context switch 2020-12-22 12:55:08 -08:00
check_ksm_options.c kselftest/arm64: mte: ksm_options: Fix fscanf warning 2021-03-23 16:36:30 +00:00
check_mmap_options.c kselftest/arm64: Fix check_mmap_options test 2020-10-28 13:42:23 +00:00
check_tags_inclusion.c kselftest/arm64: Fix check_tags_inclusion test 2020-10-28 13:42:23 +00:00
check_user_mem.c kselftest/arm64: mte: user_mem: Fix write() warning 2021-03-24 15:43:01 +00:00
Makefile kselftest/arm64: mte: Makefile: Fix clang compilation 2021-03-24 15:43:20 +00:00
mte_common_util.c kselftest/arm64: mte: Report filename on failing temp file creation 2021-03-24 15:43:20 +00:00
mte_common_util.h kselftest/arm64: Check mte tagged user address in kernel 2020-10-05 18:52:17 +01:00
mte_def.h
mte_helper.S kselftest/arm64: Check mte tagged user address in kernel 2020-10-05 18:52:17 +01:00