|
1 | | -use super::exceptions_store; |
2 | 1 | use wasmtime::*; |
3 | 2 | use wasmtime_test_macros::wasmtime_test; |
4 | 3 |
|
5 | | -#[cfg_attr(miri, ignore)] |
6 | 4 | #[wasmtime_test(wasm_features(exceptions))] |
7 | 5 | fn basic_throw(config: &mut Config) -> Result<()> { |
8 | | - let mut store = exceptions_store(config)?; |
9 | | - let engine = store.engine(); |
| 6 | + let engine = Engine::new(config)?; |
| 7 | + let mut store = Store::new(&engine, ()); |
10 | 8 |
|
11 | 9 | let module = Module::new( |
12 | 10 | &engine, |
@@ -39,10 +37,9 @@ fn basic_throw(config: &mut Config) -> Result<()> { |
39 | 37 | } |
40 | 38 |
|
41 | 39 | #[wasmtime_test(wasm_features(exceptions))] |
42 | | -#[cfg_attr(miri, ignore)] |
43 | 40 | fn dynamic_tags(config: &mut Config) -> Result<()> { |
44 | | - let mut store = exceptions_store(config)?; |
45 | | - let engine = store.engine(); |
| 41 | + let engine = Engine::new(config)?; |
| 42 | + let mut store = Store::new(&engine, ()); |
46 | 43 |
|
47 | 44 | let module = Module::new( |
48 | 45 | &engine, |
@@ -99,10 +96,9 @@ fn dynamic_tags(config: &mut Config) -> Result<()> { |
99 | 96 | } |
100 | 97 |
|
101 | 98 | #[wasmtime_test(wasm_features(exceptions))] |
102 | | -#[cfg_attr(miri, ignore)] |
103 | 99 | fn exception_escape_to_host(config: &mut Config) -> Result<()> { |
104 | | - let mut store = exceptions_store(config)?; |
105 | | - let engine = store.engine(); |
| 100 | + let engine = Engine::new(config)?; |
| 101 | + let mut store = Store::new(&engine, ()); |
106 | 102 |
|
107 | 103 | let module = Module::new( |
108 | 104 | &engine, |
@@ -132,10 +128,9 @@ fn exception_escape_to_host(config: &mut Config) -> Result<()> { |
132 | 128 | } |
133 | 129 |
|
134 | 130 | #[wasmtime_test(wasm_features(exceptions))] |
135 | | -#[cfg_attr(miri, ignore)] |
136 | 131 | fn exception_from_host(config: &mut Config) -> Result<()> { |
137 | | - let mut store = exceptions_store(config)?; |
138 | | - let engine = store.engine(); |
| 132 | + let engine = Engine::new(config)?; |
| 133 | + let mut store = Store::new(&engine, ()); |
139 | 134 |
|
140 | 135 | let module = Module::new( |
141 | 136 | &engine, |
@@ -183,10 +178,9 @@ fn exception_from_host(config: &mut Config) -> Result<()> { |
183 | 178 | } |
184 | 179 |
|
185 | 180 | #[wasmtime_test(wasm_features(exceptions))] |
186 | | -#[cfg_attr(miri, ignore)] |
187 | 181 | fn exception_across_no_wasm(config: &mut Config) -> Result<()> { |
188 | | - let mut store = exceptions_store(config)?; |
189 | | - let engine = store.engine(); |
| 182 | + let engine = Engine::new(config)?; |
| 183 | + let mut store = Store::new(&engine, ()); |
190 | 184 |
|
191 | 185 | let functy = FuncType::new(&engine, [ValType::I32], []); |
192 | 186 | let tagty = TagType::new(functy.clone()); |
@@ -214,15 +208,3 @@ fn exception_across_no_wasm(config: &mut Config) -> Result<()> { |
214 | 208 |
|
215 | 209 | Ok(()) |
216 | 210 | } |
217 | | - |
218 | | -#[test] |
219 | | -#[cfg_attr(miri, ignore)] |
220 | | -fn pulley_unsupported() -> Result<()> { |
221 | | - use wasmtime_environ::TripleExt; |
222 | | - let mut config = wasmtime::Config::new(); |
223 | | - config.target(&target_lexicon::Triple::pulley_host().to_string())?; |
224 | | - config.wasm_exceptions(true); |
225 | | - assert!(wasmtime::Engine::new(&config).is_err()); |
226 | | - |
227 | | - Ok(()) |
228 | | -} |
0 commit comments