diff --git a/lld/test/wasm/relocation-bad-tls.s b/lld/test/wasm/relocation-bad-tls.s
--- a/lld/test/wasm/relocation-bad-tls.s
+++ b/lld/test/wasm/relocation-bad-tls.s
@@ -1,5 +1,5 @@
 # RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t.o %s
-# RUN: not wasm-ld %t.o -o out.wasm 2>&1 | FileCheck %s
+# RUN: not wasm-ld %t.o -o %t.wasm 2>&1 | FileCheck %s
 
 .globl _start
 _start: