diff --git a/toolchain/driver/testdata/error_codegen_objcode_target_triple.carbon b/toolchain/driver/testdata/error_codegen_objcode_target_triple.carbon index d4d681ca6761..1207534b5e5c 100644 --- a/toolchain/driver/testdata/error_codegen_objcode_target_triple.carbon +++ b/toolchain/driver/testdata/error_codegen_objcode_target_triple.carbon @@ -2,7 +2,7 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // -// RUN: %{not} %{carbon} dump objcode --target_triple=x86_684-unknown-linux-gnu --output_file=output.o %s | %{FileCheck-strict} +// RUN: %{not} %{carbon} dump objcode --target_triple=x86_684-unknown-linux-gnu --output_file=%t %s | %{FileCheck-strict} // CHECK:STDERR: ERROR: Invalid -target_triple:{{.*}} fn Main() -> i32 { return 0; } diff --git a/toolchain/driver/testdata/success_codegen_objfile.carbon b/toolchain/driver/testdata/success_codegen_objfile.carbon index a7b66cedf872..3480fc0dfe6f 100644 --- a/toolchain/driver/testdata/success_codegen_objfile.carbon +++ b/toolchain/driver/testdata/success_codegen_objfile.carbon @@ -2,7 +2,7 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // -// RUN: %{carbon} dump objcode --target_triple=x86_64-unknown-linux-gnu --output_file=objfile.o %s | %{FileCheck-strict} +// RUN: %{carbon} dump objcode --target_triple=x86_64-unknown-linux-gnu --output_file=%t %s | %{FileCheck-strict} // CHECK:STDOUT: Success: Object file is generated! fn Main() -> i32 { return 0; }