Skip to content

Commit e0192f7

Browse files
update test to handle nondeterminism
1 parent 05041cd commit e0192f7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/SymbolGraph/ClangImporter/PartialSubmoduleExport.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
// RUN: split-file %s %t
44

55
// RUN: %target-swift-symbolgraph-extract -sdk %clang-importer-sdk -module-name PartialSubmoduleExport -I %t/PartialSubmoduleExport -output-dir %t -pretty-print -v
6+
67
// RUN: %FileCheck %s --input-file %t/PartialSubmoduleExport.symbols.json
8+
// check the missing symbols separately to account for arbitrary ordering
9+
// RUN: %FileCheck %s --input-file %t/PartialSubmoduleExport.symbols.json --check-prefix MISSING
710

811
// REQUIRES: objc_interop
912

@@ -67,6 +70,8 @@ static int groupATwo = 2;
6770
#include "GroupBOne.h"
6871
#include "GroupBTwo.h"
6972

73+
// Because GroupB was not exported by itself, this symbol should be missing
74+
// MISSING-NOT: "precise": "c:GroupB.h@groupBVar"
7075
static int groupBVar = 0;
7176

7277
//--- PartialSubmoduleExport/GroupB/GroupBOne.h
@@ -76,5 +81,5 @@ static int groupBOne = 1;
7681
//--- PartialSubmoduleExport/GroupB/GroupBTwo.h
7782
// Because GroupBTwo is not exported in the top-level module map,
7883
// this shouldn't be in the symbol graph
79-
// CHECK-NOT: "precise": "c:GroupBTwo.h@groupBTwo"
84+
// MISSING-NOT: "precise": "c:GroupBTwo.h@groupBTwo"
8085
static int groupBTwo = 2;

0 commit comments

Comments
 (0)