]> granicus.if.org Git - clang/commitdiff
[NFC] Fix ClangScanDeps/static-analyzer.c test on Windows
authorJan Korous <jkorous@apple.com>
Mon, 14 Oct 2019 21:06:11 +0000 (21:06 +0000)
committerJan Korous <jkorous@apple.com>
Mon, 14 Oct 2019 21:06:11 +0000 (21:06 +0000)
Follow-up to c5d14b5c6fa

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@374821 91177308-0d34-0410-b5e6-96231b3b80d8

test/ClangScanDeps/static-analyzer.c

index dca35039d83141e951cb6c8a4de0ce38ba2d06e6..c4af9b076bb2cc63be0227aa76a788b9d3190388 100644 (file)
@@ -1,12 +1,12 @@
 // RUN: rm -rf %t.dir
-// RUN: rm -rf %t.dir/cdb.json
+// RUN: rm -rf %t-cdb.json
 // RUN: mkdir -p %t.dir
 // RUN: cp %s %t.dir/static-analyzer.c
 // RUN: mkdir %t.dir/Inputs
 // RUN: cp %S/Inputs/header.h %t.dir/Inputs/analyze_header_input.h
-// RUN: sed -e "s|DIR|%t.dir|g" %S/Inputs/static-analyzer-cdb.json > %t.dir/cdb.json
+// RUN: sed -e "s|DIR|%/t.dir|g" %S/Inputs/static-analyzer-cdb.json > %t-cdb.json
 //
-// RUN: clang-scan-deps -compilation-database %t.dir/cdb.json -j 1 | FileCheck %s
+// RUN: clang-scan-deps -compilation-database %t-cdb.json -j 1 | FileCheck %s
 
 #ifdef __clang_analyzer__
 #include "Inputs/analyze_header_input.h"