1 // RUN: rm -rf %t.dir 2 // RUN: rm -rf %t.cdb 3 // RUN: mkdir -p %t.dir 4 // RUN: cp %s %t.dir/regular_cdb_input.cpp 5 // RUN: sed -e "s|DIR|%/t.dir|g" %S/Inputs/regular_cdb.json > %t.cdb 6 // 7 // RUN: not clang-scan-deps -compilation-database %t.cdb -j 1 2>%t.dir/errs 8 // RUN: echo EOF >> %t.dir/errs 9 // RUN: FileCheck %s --input-file %t.dir/errs 10 11 #include "missing.h" 12 13 // CHECK: Error while scanning dependencies 14 // CHECK-NEXT: error: no such file or directory: 15 // CHECK-NEXT: error: no input files 16 // CHECK-NEXT: error: 17 // CHECK-NEXT: Error while scanning dependencies 18 // CHECK-NEXT: fatal error: 'missing.h' file not found 19 // CHECK-NEXT: "missing.h" 20 // CHECK-NEXT: ^ 21 // CHECK-NEXT: Error while scanning dependencies 22 // CHECK-NEXT: fatal error: 'missing.h' file not found 23 // CHECK-NEXT: "missing.h" 24 // CHECK-NEXT: ^ 25 // CHECK-NEXT: EOF 26