Skip to content

Commit 3d2ab66

Browse files
authored
test: Ignore miri errors in tests involving assert_snapshot (#2261)
Fixes #2252 . Still waiting for my local run of the unsoundess checks to complete: they take an age! But these tests appear to be the culprits.
1 parent b22d20a commit 3d2ab66

File tree

1 file changed

+4
-0
lines changed
  • hugr-core/src/hugr/views/root_checked

1 file changed

+4
-0
lines changed

hugr-core/src/hugr/views/root_checked/dfg.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ mod test {
329329
));
330330
}
331331

332+
#[cfg_attr(miri, ignore)] // Opening files is not supported in (isolated) miri
332333
#[test]
333334
fn test_map_io_duplicate_output() {
334335
// Create a DFG with 1 input and 1 output
@@ -360,6 +361,7 @@ mod test {
360361
assert_snapshot!(dfg_hugr.mermaid_string());
361362
}
362363

364+
#[cfg_attr(miri, ignore)] // Opening files is not supported in (isolated) miri
363365
#[test]
364366
fn test_map_io_cx_gate() {
365367
// Create a DFG with 2 inputs and 2 outputs for a CX gate
@@ -419,6 +421,7 @@ mod test {
419421
assert_snapshot!(dfg_hugr.mermaid_string());
420422
}
421423

424+
#[cfg_attr(miri, ignore)] // Opening files is not supported in (isolated) miri
422425
#[test]
423426
fn test_map_io_cycle_3qb() {
424427
// Create a DFG with 3 inputs and 3 outputs: CX[0, 1] and empty 2nd qubit
@@ -478,6 +481,7 @@ mod test {
478481
assert_snapshot!(dfg_hugr.mermaid_string());
479482
}
480483

484+
#[cfg_attr(miri, ignore)] // Opening files is not supported in (isolated) miri
481485
#[test]
482486
fn test_map_io_recursive() {
483487
use crate::builder::ModuleBuilder;

0 commit comments

Comments
 (0)