@@ -22,43 +22,20 @@ module root1 { header "root1.h"}
2222// This is here to verify that the "root" directory doesn't clash with name of
2323// the "root" module.
2424
25- // Verify the stable dir path.
26- //--- Sysroot/usr/include/SysA/module.modulemap
27- module SysA {
28- header "SysA.h"
29- }
30-
31- //--- Sysroot/usr/include/SysA/SysA.h
32- int SysVal = 42 ;
33-
3425//--- cdb.json.template
3526[{
3627 "file" : "",
3728 " directory ": " DIR ",
38- " command ": " clang - fmodules - fmodules - cache - path = DIR /cache - I DIR - isysroot DIR / Sysroot - IDIR / Sysroot / usr / include - x c "
29+ " command ": " clang - fmodules - fmodules - cache - path = DIR /cache - I DIR - x c "
3930}]
4031
4132// RUN: sed "s|DIR|%/t|g" %t/cdb.json.template > %t/cdb.json
42- // RUN: clang-scan-deps -compilation-database %t/cdb.json -format experimental-full -module-names=SysA, root,root1,direct > %t/result.json
33+ // RUN: clang-scan-deps -compilation-database %t/cdb.json -format experimental-full -module-names=root,root1,direct > %t/result.json
4334// RUN: cat %t/result.json | sed 's:\\\\\?:/:g' | FileCheck -DPREFIX=%/t %s
4435
4536// CHECK: {
4637// CHECK-NEXT: "modules": [
4738// CHECK-NEXT: {
48- // CHECK-NEXT: "is-in-stable-directories": true,
49- // CHECK-NEXT: "clang-module-deps": [],
50- // CHECK-NEXT: "clang-modulemap-file": "[[PREFIX]]/Sysroot/usr/include/SysA/module.modulemap",
51- // CHECK-NEXT: "command-line": [
52- // CHECK: ],
53- // CHECK-NEXT: "context-hash": "{{.*}}",
54- // CHECK-NEXT: "file-deps": [
55- // CHECK-NEXT: "[[PREFIX]]/Sysroot/usr/include/SysA/module.modulemap",
56- // CHECK-NEXT: "[[PREFIX]]/Sysroot/usr/include/SysA/SysA.h"
57- // CHECK-NEXT: ],
58- // CHECK-NEXT: "link-libraries": [],
59- // CHECK-NEXT: "name": "SysA"
60- // CHECK-NEXT: },
61- // CHECK-NEXT: {
6239// CHECK-NEXT: "clang-module-deps": [
6340// CHECK-NEXT: {
6441// CHECK-NEXT: "context-hash": "{{.*}}",
0 commit comments