[clang][deps] Remove checks that were just for exhaustiveness
authorBen Langmuir <blangmuir@apple.com>
Tue, 15 Nov 2022 22:18:59 +0000 (14:18 -0800)
committerBen Langmuir <blangmuir@apple.com>
Tue, 15 Nov 2022 22:22:23 +0000 (14:22 -0800)
Instead of checking all the paths, just ensure the one we care about is
correct. On a particular platform one of the paths seems to have been
more canonical than we were expecting, which is fine.

clang/test/ClangScanDeps/modules-symlink-dir-from-module.c

index 5dde770..d1f7479 100644 (file)
 // CHECK: "modules": [
 // CHECK:   {
 // CHECK:     "command-line": [
+// CHECK-NOT: ]
 // CHECK:       "-fmodule-map-file=[[PREFIX]]/include/module/module.modulemap"
 // CHECK:     ]
 // CHECK:     "name": "Foo"
 // CHECK:   }
-// CHECK:   {
-// CHECK:     "command-line": [
-// FIXME: canonicalize this path
-// CHECK:       "-fmodule-map-file=[[PREFIX]]/include/symlink-to-module/module.modulemap"
-// CHECK:     ]
-// CHECK:     "name": "Foo_Private"
-// CHECK:   }
-// CHECK:   {
-// CHECK:     "command-line": [
-// CHECK:       "[[PREFIX]]/include/module/module.modulemap"
-// CHECK:     ]
-// CHECK:     "name": "Mod"
-// CHECK:   }
-// CHECK:   {
-// CHECK:     "command-line": [
-// FIXME: canonicalize this path
-// CHECK:       "-fmodule-map-file=[[PREFIX]]/include/symlink-to-module/module.modulemap"
-// CHECK:     ]
-// CHECK:     "name": "Other"
-// CHECK:   }
-// CHECK:   {
-// CHECK:     "command-line": [
-// FIXME: canonicalize this path
-// CHECK:       "-fmodule-map-file=[[PREFIX]]/include/symlink-to-module/module.modulemap"
-// CHECK:     ]
-// CHECK:     "name": "Test"
-// CHECK:   }
-// CHECK: ]
 
 //--- cdb.json.in
 [{