File tree Expand file tree Collapse file tree 2 files changed +14
-8
lines changed Expand file tree Collapse file tree 2 files changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -109,6 +109,7 @@ public void ItSetsSIMD()
109
109
{
110
110
var config = new Config ( ) ;
111
111
config . WithSIMD ( false ) ;
112
+ config . WithRelaxedSIMD ( false , false ) ;
112
113
113
114
Action act = ( ) =>
114
115
{
@@ -123,17 +124,23 @@ public void ItSetsSIMD()
123
124
public void ItSetsRelaxedSIMD ( )
124
125
{
125
126
var config = new Config ( ) ;
126
- config . WithRelaxedSIMD ( true , true ) ;
127
+ config . WithRelaxedSIMD ( false , false ) ;
127
128
128
- using var engine = new Engine ( config ) ;
129
- using var module = Module . FromTextFile ( engine , Path . Combine ( "Modules" , "RelaxedSIMD.wat" ) ) ;
129
+ Action act = ( ) =>
130
+ {
131
+ using var engine = new Engine ( config ) ;
132
+ using var module = Module . FromTextFile ( engine , Path . Combine ( "Modules" , "RelaxedSIMD.wat" ) ) ;
133
+ } ;
134
+
135
+ act . Should ( ) . Throw < WasmtimeException > ( ) ;
130
136
}
131
137
132
138
[ Fact ]
133
139
public void ItSetsBulkMemory ( )
134
140
{
135
141
var config = new Config ( ) ;
136
142
config . WithBulkMemory ( false ) ;
143
+ config . WithWasmThreads ( false ) ;
137
144
config . WithReferenceTypes ( false ) ;
138
145
139
146
Action act = ( ) =>
Original file line number Diff line number Diff line change 1
1
using System ;
2
- using System . Linq ;
3
2
using FluentAssertions ;
4
3
using Xunit ;
5
4
@@ -8,9 +7,9 @@ namespace Wasmtime.Tests
8
7
public class MultiMemoryTests
9
8
{
10
9
[ Fact ]
11
- public void ItFailsWithoutMultiMemoryEnabled ( )
10
+ public void ItFailsWithMultiMemoryDisabled ( )
12
11
{
13
- using var engine = new Engine ( ) ;
12
+ using var engine = new Engine ( new Config ( ) . WithMultiMemory ( false ) ) ;
14
13
Action action = ( ) =>
15
14
{
16
15
using var module = Module . FromText ( engine , "test" , @"(module (memory 0 1) (memory 0 1))" ) ;
@@ -23,9 +22,9 @@ public void ItFailsWithoutMultiMemoryEnabled()
23
22
}
24
23
25
24
[ Fact ]
26
- public void ItSucceedsWithMultiMemoryEnabled ( )
25
+ public void ItSucceedsWithoutMultiMemoryDisabled ( )
27
26
{
28
- using var engine = new Engine ( new Config ( ) . WithMultiMemory ( true ) ) ;
27
+ using var engine = new Engine ( ) ;
29
28
using var module = Module . FromText ( engine , "test" , @"(module (memory 0 1) (memory 0 1))" ) ;
30
29
}
31
30
}
You can’t perform that action at this time.
0 commit comments