Skip to content

Commit

Permalink
Fixed broken miri CI script (#712)
Browse files Browse the repository at this point in the history
* Fixed broken miri CI script

* Disabled `test_std_file` in miri as it uses tempfile which is not supported

---------

Co-authored-by: Victor Koenders <[email protected]>
  • Loading branch information
VictorKoenders and Victor Koenders authored May 1, 2024
1 parent 4299f6d commit 6307d6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/miri.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "miri",
"on": [
"on": {
"push": {
"branches": [
"trunk",
Expand All @@ -14,7 +14,7 @@
"v*.x"
]
}
],
},
"jobs": {
"miri": {
"name": "MIRI",
Expand Down
1 change: 1 addition & 0 deletions tests/std.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ fn test_std_cursor() {
}

#[test]
#[cfg_attr(miri, ignore)] // miri does not like `tempfile`
fn test_std_file() {
let mut file = tempfile::tempfile().expect("Could not create temp file");

Expand Down

0 comments on commit 6307d6f

Please sign in to comment.