diff --git a/clang/test/CAS/daemon-cwd.c b/clang/test/CAS/daemon-cwd.c index b41a130784e34..6aa3b2232e36e 100644 --- a/clang/test/CAS/daemon-cwd.c +++ b/clang/test/CAS/daemon-cwd.c @@ -18,8 +18,9 @@ // RUN: %clang -cc1depscand -execute %{clang-daemon-dir}/%basename_t \ // RUN: -cas-args -fcas-path %t/cas -- %t/cmd.sh -// RUN: (cd %t && %clang -target x86_64-apple-macos11 -MD -MF %t/test2.d \ -// RUN: -Iinclude -fsyntax-only -x c %s) +// RUN: cd %t +// RUN: %clang -target x86_64-apple-macos11 -MD -MF %t/test2.d \ +// RUN: -Iinclude -fsyntax-only -x c %s // RUN: diff %t/test.d %t/test2.d #include "test.h" diff --git a/clang/test/CAS/libclang-replay-job.c b/clang/test/CAS/libclang-replay-job.c index fc79b88bed2da..e81c07bd94add 100644 --- a/clang/test/CAS/libclang-replay-job.c +++ b/clang/test/CAS/libclang-replay-job.c @@ -12,9 +12,10 @@ // RUN: %deps-to-rsp %t/deps.json --tu-index 0 > %t/cc1.rsp -// RUN: (cd %t; %clang @%t/cc1.rsp) -// RUN: (cd %t; %clang @%t/cc1.rsp -Rcompile-job-cache-hit \ -// RUN: -serialize-diagnostic-file %t/t1.dia 2> %t/output1.txt) +// RUN: cd %t +// RUN: %clang @%t/cc1.rsp +// RUN: %clang @%t/cc1.rsp -Rcompile-job-cache-hit \ +// RUN: -serialize-diagnostic-file %t/t1.dia 2> %t/output1.txt // Verify the warning was recorded and we compare populated .dia files. // RUN: c-index-test -read-diagnostics %t/t1.dia 2>&1 | FileCheck %s --check-prefix=DIAGS