Skip to content

Commit 9c866dd

Browse files
committed
[Test] Disable deserialization safety in tests reading internal details
Both of these IRGen tests expect to see internal details from resilient modules at build time. Deserialization safety hides that information, let's disable it to preserve the desired behavior.
1 parent af70cc5 commit 9c866dd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/IRGen/type_layout_dumper_all.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// RUN: %empty-directory(%t)
33
// RUN: %target-swift-frontend -emit-module -enable-library-evolution -emit-module-path=%t/type_layout_dumper_other.swiftmodule -module-name=type_layout_dumper_other %S/Inputs/type_layout_dumper_other.swift
44

5-
// RUN: %target-swift-frontend -dump-type-info -I %t %s | %FileCheck %s
5+
// RUN: %target-swift-frontend -dump-type-info -I %t %s -disable-deserialization-safety | %FileCheck %s
66

77
// REQUIRES: CPU=x86_64
88
// REQUIRES: OS=macosx

test/IRGen/type_layout_dumper_resilient.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// RUN: %empty-directory(%t)
33
// RUN: %target-swift-frontend -emit-module -enable-library-evolution -emit-module-path=%t/type_layout_dumper_other.swiftmodule -module-name=type_layout_dumper_other %S/Inputs/type_layout_dumper_other.swift
44

5-
// RUN: %target-swift-frontend -dump-type-info -type-info-dump-filter=resilient -I %t %s | %FileCheck %s
5+
// RUN: %target-swift-frontend -dump-type-info -type-info-dump-filter=resilient -I %t %s -disable-deserialization-safety | %FileCheck %s
66

77
// REQUIRES: CPU=x86_64
88
// REQUIRES: OS=macosx

0 commit comments

Comments
 (0)