File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ TemporaryAllocationTestSuite.test("untypedEmptyAllocationIsStackAllocated") {
70
70
}
71
71
}
72
72
73
+ #if !os(WASI)
73
74
TemporaryAllocationTestSuite . test ( " crashOnNegativeByteCount " ) {
74
75
expectCrash {
75
76
let byteCount = Int . random ( in: - 2 ..< - 1 )
@@ -83,6 +84,7 @@ TemporaryAllocationTestSuite.test("crashOnNegativeAlignment") {
83
84
withUnsafeTemporaryAllocation ( byteCount: 16 , alignment: alignment) { _ in }
84
85
}
85
86
}
87
+ #endif
86
88
87
89
TemporaryAllocationTestSuite . test ( " untypedAllocationIsAligned " ) {
88
90
withUnsafeTemporaryAllocation ( byteCount: 1 , alignment: 8 ) { buffer in
@@ -136,12 +138,14 @@ TemporaryAllocationTestSuite.test("voidAllocationIsStackAllocated") {
136
138
}
137
139
}
138
140
141
+ #if !os(WASI)
139
142
TemporaryAllocationTestSuite . test ( " crashOnNegativeValueCount " ) {
140
143
expectCrash {
141
144
let capacity = Int . random ( in: - 2 ..< - 1 )
142
145
withUnsafeTemporaryAllocation ( of: Int . self, capacity: capacity) { _ in }
143
146
}
144
147
}
148
+ #endif
145
149
146
150
TemporaryAllocationTestSuite . test ( " typedAllocationIsAligned " ) {
147
151
withUnsafeTemporaryAllocation ( of: Int . self, capacity: 1 ) { buffer in
You can’t perform that action at this time.
0 commit comments