diff --git a/lld/test/ELF/invalid/invalid-e_shnum.s b/lld/test/ELF/invalid/invalid-e_shnum.s index fc197e7f2852..87358aa75777 100644 --- a/lld/test/ELF/invalid/invalid-e_shnum.s +++ b/lld/test/ELF/invalid/invalid-e_shnum.s @@ -1,4 +1,4 @@ ## Spec says that "If a file has no section header table, e_shnum holds the value zero.", though ## in this test case it holds non-zero and lld may crash. # RUN: not ld.lld %p/Inputs/invalid-e_shnum.elf -o %t2 2>&1 | FileCheck %s -# CHECK: e_shnum should be zero if a file has no section header table \ No newline at end of file +# CHECK: Invalid data was encountered while parsing the file