| Index: tools/clang/plugins/tests/test.sh
|
| diff --git a/tools/clang/plugins/tests/test.sh b/tools/clang/plugins/tests/test.sh
|
| index c74cd3aba8823fd390425d1356493273748623b6..fcfd213c5eda55e906b0249daa96262180a8520e 100755
|
| --- a/tools/clang/plugins/tests/test.sh
|
| +++ b/tools/clang/plugins/tests/test.sh
|
| @@ -23,9 +23,9 @@ usage() {
|
|
|
| # Runs a single test case.
|
| do_testcase() {
|
| - local output="$("${CLANG_DIR}"/bin/clang -cc1 \
|
| - -load "${CLANG_DIR}"/lib/libFindBadConstructs.${LIB} \
|
| - -plugin find-bad-constructs ${1} 2>&1)"
|
| + local output="$("${CLANG_DIR}"/bin/clang -c \
|
| + -Xclang -load -Xclang "${CLANG_DIR}"/lib/libFindBadConstructs.${LIB} \
|
| + -Xclang -plugin -Xclang find-bad-constructs ${1} 2>&1)"
|
| local diffout="$(echo "${output}" | diff - "${2}")"
|
| if [ "${diffout}" = "" ]; then
|
| echo "PASS: ${1}"
|
|
|