Browse Source

Fix test failures from running tests

These mostly have to do with the test environment itself, so we might
not want to keep these changes, if they are fixed in the runner.
pull/135/head
Ian Chamberlain 1 year ago
parent
commit
318c341271
No known key found for this signature in database
GPG Key ID: AE5484D09405AA60
  1. 5
      ctru-rs/src/services/gfx.rs
  2. 1
      ctru-rs/src/services/romfs.rs

5
ctru-rs/src/services/gfx.rs

@ -499,7 +499,8 @@ mod tests { @@ -499,7 +499,8 @@ mod tests {
#[test]
fn gfx_duplicate() {
// We don't need to build a `Gfx` because the test runner has one already
assert!(matches!(Gfx::new(), Err(Error::ServiceAlreadyActive)));
// NOTE: this will fail if using the console test runner, since that creates
// a Gfx as part of its test setup.
Gfx::new().unwrap();
}
}

1
ctru-rs/src/services/romfs.rs

@ -84,6 +84,7 @@ mod tests { @@ -84,6 +84,7 @@ mod tests {
use super::*;
#[test]
#[ignore = "library test .elf doesn't have the romfs in it. citra runner needs to support 3dsx"]
fn romfs_counter() {
let _romfs = RomFS::new().unwrap();
let value = *ROMFS_ACTIVE.lock().unwrap();

Loading…
Cancel
Save