Skip to content

Commit 4b79f76

Browse files
laifryieeshuahkh
authored andcommitted
selftests/sgx: Add "test_encl.elf" to TEST_FILES
The "test_encl.elf" file used by test_sgx is not installed in INSTALL_PATH. Attempting to execute test_sgx causes false negative: " enclave executable open(): No such file or directory main.c:188:unclobbered_vdso:Failed to load the test enclave. " Add "test_encl.elf" to TEST_FILES so that it will be installed. Fixes: 2adcba7 ("selftests/x86: Add a selftest for SGX") Signed-off-by: Yi Lai <yi1.lai@intel.com> Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
1 parent ac9a786 commit 4b79f76

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tools/testing/selftests/sgx/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ ENCL_CFLAGS := -Wall -Werror -static -nostdlib -nostartfiles -fPIC \
1717
-fno-stack-protector -mrdrnd $(INCLUDES)
1818

1919
TEST_CUSTOM_PROGS := $(OUTPUT)/test_sgx
20+
TEST_FILES := $(OUTPUT)/test_encl.elf
2021

2122
ifeq ($(CAN_BUILD_X86_64), 1)
2223
all: $(TEST_CUSTOM_PROGS) $(OUTPUT)/test_encl.elf

0 commit comments

Comments
 (0)