1 // UNSUPPORTED: target={{.*}}-aix{{.*}} 2 3 // RUN: rm -rf %t.dir 4 // RUN: rm -rf %t.cdb 5 // RUN: mkdir -p %t.dir 6 // RUN: mkdir %t.dir/Inputs 7 // RUN: cp %s %t.dir/Inputs/relative_directory_input1.cpp 8 // RUN: cp %s %t.dir/Inputs/relative_directory_input2.cpp 9 // RUN: touch %t.dir/Inputs/header.h 10 // RUN: sed -e "s|DIR|%/t.dir|g" %S/Inputs/relative_directory.json > %t.cdb 11 // 12 // RUN: clang-scan-deps -compilation-database %t.cdb -j 1 | FileCheck --check-prefixes=CHECK1,CHECK2 %s 13 14 // The output order is non-deterministic when using more than one thread, 15 // so check the output using two runs. 16 // RUN: clang-scan-deps -compilation-database %t.cdb -j 2 | FileCheck --check-prefix=CHECK1 %s 17 // RUN: clang-scan-deps -compilation-database %t.cdb -j 2 | FileCheck --check-prefix=CHECK2 %s 18 19 #include <header.h> 20 21 // CHECK1: relative_directory_input1.o: 22 // CHECK1-NEXT: relative_directory_input1.cpp 23 // CHECK1-NEXT: header.h 24 25 // CHECK2: relative_directory_input2.o: 26 // CHECK2-NEXT: relative_directory_input2.cpp 27 // CHECK2-NEXT: header.h 28