Skip to content

Commit 9a17d6b

Browse files
committed
Update “unable to load standard library” test (#23990)
One of the subtests of Misc/fatal_error.swift assumes that Swift.swiftmodule is located purely based on the resource directory. It can now also be located in the SDK, so the test needs to be updated. Fixes <rdar://problem/49665477>. # Conflicts: # test/Misc/fatal_error.swift
1 parent 570d3d0 commit 9a17d6b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/Misc/fatal_error.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
// RUN: not %target-swift-frontend -typecheck %s -sdk "" 2>&1 | %FileCheck -check-prefix=CHECK -check-prefix=NO-MODULE %s
2-
// RUN: not %target-swift-frontend -typecheck %s -resource-dir / 2>&1 | %FileCheck -check-prefix=CHECK -check-prefix=NO-STDLIB %s
1+
// RUN: %empty-directory(%t)
2+
3+
// RUN: not %target-swift-frontend -typecheck %s -sdk %t 2>&1 | %FileCheck -check-prefix=CHECK -check-prefix=NO-MODULE %s
4+
// RUN: not %target-swift-frontend -typecheck %s -resource-dir %t -sdk %t 2>&1 | %FileCheck -check-prefix=CHECK -check-prefix=NO-STDLIB %s
35

46
// NO-MODULE: error: no such module 'NonExistent'
57

0 commit comments

Comments
 (0)