From 3d09c9b30fe6484717181a926e14b2ee36747d13 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Mon, 2 May 2022 10:00:57 -0700 Subject: [PATCH] [Driver][test] Avoiding producing object file in the current directory --- clang/test/Driver/cc-print-options.c | 2 +- clang/test/Driver/cc-print-proc-stat.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/clang/test/Driver/cc-print-options.c b/clang/test/Driver/cc-print-options.c index 9c3ef1f89772..5a1781008337 100644 --- a/clang/test/Driver/cc-print-options.c +++ b/clang/test/Driver/cc-print-options.c @@ -4,5 +4,5 @@ // RUN: FileCheck %s < %t.log // CHECK: [Logging clang options] -// CHECK: {{.*}}clang{{.*}}"-S" +// CHECK: {{.*}} "-S" diff --git a/clang/test/Driver/cc-print-proc-stat.c b/clang/test/Driver/cc-print-proc-stat.c index c1f96a69e1e7..14029c3ccca0 100644 --- a/clang/test/Driver/cc-print-proc-stat.c +++ b/clang/test/Driver/cc-print-proc-stat.c @@ -5,5 +5,5 @@ // CHECK-CSV: clang{{.*}},"{{.*}}.s",{{[0-9]+}},{{[0-9]+}},{{[0-9]+}} // RUN: env CC_PRINT_PROC_STAT=1 \ -// RUN: %clang -no-canonical-prefixes -c -fintegrated-as %s | FileCheck %s +// RUN: %clang -no-canonical-prefixes -c -fintegrated-as %s -o %t.o | FileCheck %s // CHECK: clang{{.*}}: output={{.*}}.o, total={{[0-9.]+}} ms, user={{[0-9.]+}} ms, mem={{[0-9]+}} Kb