From dcfb25078c2629450b393e696b97699990721a9f Mon Sep 17 00:00:00 2001 From: Ben Langmuir Date: Tue, 15 Nov 2022 14:18:59 -0800 Subject: [PATCH] [clang][deps] Remove checks that were just for exhaustiveness 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. --- .../modules-symlink-dir-from-module.c | 29 +--------------------- 1 file changed, 1 insertion(+), 28 deletions(-) diff --git a/clang/test/ClangScanDeps/modules-symlink-dir-from-module.c b/clang/test/ClangScanDeps/modules-symlink-dir-from-module.c index 5dde770..d1f7479 100644 --- a/clang/test/ClangScanDeps/modules-symlink-dir-from-module.c +++ b/clang/test/ClangScanDeps/modules-symlink-dir-from-module.c @@ -19,38 +19,11 @@ // 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 [{ -- 2.7.4