diff --git a/lld/test/ELF/linkerscript/insert-not-exist.test b/lld/test/ELF/linkerscript/insert-not-exist.test --- 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