Skip to content

Commit 4b667ee

Browse files
[CAS] Fix downstream test cases after lit internal shell change
Fix Failed Tests: Clang :: CAS/daemon-cwd.c Clang :: CAS/libclang-replay-job.c
1 parent 38b1a5f commit 4b667ee

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

clang/test/CAS/daemon-cwd.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@
1818

1919
// RUN: %clang -cc1depscand -execute %{clang-daemon-dir}/%basename_t \
2020
// RUN: -cas-args -fcas-path %t/cas -- %t/cmd.sh
21-
// RUN: (cd %t && %clang -target x86_64-apple-macos11 -MD -MF %t/test2.d \
22-
// RUN: -Iinclude -fsyntax-only -x c %s)
21+
// RUN: cd %t
22+
// RUN: %clang -target x86_64-apple-macos11 -MD -MF %t/test2.d \
23+
// RUN: -Iinclude -fsyntax-only -x c %s
2324
// RUN: diff %t/test.d %t/test2.d
2425

2526
#include "test.h"

clang/test/CAS/libclang-replay-job.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@
1212

1313
// RUN: %deps-to-rsp %t/deps.json --tu-index 0 > %t/cc1.rsp
1414

15-
// RUN: (cd %t; %clang @%t/cc1.rsp)
16-
// RUN: (cd %t; %clang @%t/cc1.rsp -Rcompile-job-cache-hit \
17-
// RUN: -serialize-diagnostic-file %t/t1.dia 2> %t/output1.txt)
15+
// RUN: cd %t
16+
// RUN: %clang @%t/cc1.rsp
17+
// RUN: %clang @%t/cc1.rsp -Rcompile-job-cache-hit \
18+
// RUN: -serialize-diagnostic-file %t/t1.dia 2> %t/output1.txt
1819

1920
// Verify the warning was recorded and we compare populated .dia files.
2021
// RUN: c-index-test -read-diagnostics %t/t1.dia 2>&1 | FileCheck %s --check-prefix=DIAGS

0 commit comments

Comments
 (0)