diff --git a/lld/test/ELF/linkerscript/insert-not-exist.test b/lld/test/ELF/linkerscript/insert-not-exist.test index 1f95070517e1..84a2366c2d80 100644 --- a/lld/test/ELF/linkerscript/insert-not-exist.test +++ b/lld/test/ELF/linkerscript/insert-not-exist.test @@ -1,6 +1,6 @@ # REQUIRES: x86 # RUN: llvm-mc -filetype=obj -triple=x86_64 %p/Inputs/insert-after.s -o %t.o -# RUN: not ld.lld -T %s %t.o 2>&1 | FileCheck %s +# RUN: not ld.lld -T %s %t.o -o %t.out 2>&1 | FileCheck %s # CHECK: error: unable to insert .foo.data after .not_exist # CHECK: error: unable to insert .foo.text before .not_exist