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 @@ -55,6 +55,7 @@ TemporaryAllocationTestSuite.test("untypedEmptyAllocationIsStackAllocated") {
55
55
}
56
56
}
57
57
58
+ #if !os(WASI)
58
59
TemporaryAllocationTestSuite . test ( " crashOnNegativeByteCount " ) {
59
60
expectCrash {
60
61
let byteCount = Int . random ( in: - 2 ..< - 1 )
@@ -68,6 +69,7 @@ TemporaryAllocationTestSuite.test("crashOnNegativeAlignment") {
68
69
withUnsafeTemporaryAllocation ( byteCount: 16 , alignment: alignment) { _ in }
69
70
}
70
71
}
72
+ #endif
71
73
72
74
TemporaryAllocationTestSuite . test ( " untypedAllocationIsAligned " ) {
73
75
withUnsafeTemporaryAllocation ( byteCount: 1 , alignment: 8 ) { buffer in
@@ -106,12 +108,14 @@ TemporaryAllocationTestSuite.test("voidAllocationIsStackAllocated") {
106
108
}
107
109
}
108
110
111
+ #if !os(WASI)
109
112
TemporaryAllocationTestSuite . test ( " crashOnNegativeValueCount " ) {
110
113
expectCrash {
111
114
let capacity = Int . random ( in: - 2 ..< - 1 )
112
115
withUnsafeTemporaryAllocation ( of: Int . self, capacity: capacity) { _ in }
113
116
}
114
117
}
118
+ #endif
115
119
116
120
TemporaryAllocationTestSuite . test ( " typedAllocationIsAligned " ) {
117
121
withUnsafeTemporaryAllocation ( of: Int . self, capacity: 1 ) { buffer in
You can’t perform that action at this time.
0 commit comments