Skip to content

Commit

Permalink
Test getrandom 0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardosm committed Feb 1, 2025
1 parent acf2ccc commit 0bc2ad5
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 1 deletion.
31 changes: 31 additions & 0 deletions test_dependencies/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions test_dependencies/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ cfg-if = "1"

getrandom_01 = { package = "getrandom", version = "0.1" }
getrandom_02 = { package = "getrandom", version = "0.2", features = ["js"] }
getrandom_03 = { package = "getrandom", version = "0.3" }

[target.'cfg(not(any(target_arch = "wasm32", target_arch = "wasm64")))'.dependencies]
tempfile = "3"
Expand Down
4 changes: 3 additions & 1 deletion tests/pass-dep/getrandom.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//@revisions: isolation no_isolation
//@[no_isolation]compile-flags: -Zmiri-disable-isolation

/// Test direct calls of getrandom 0.1 and 0.2.
/// Test direct calls of getrandom 0.1, 0.2 and 0.3.
fn main() {
let mut data = vec![0; 16];

Expand All @@ -13,4 +13,6 @@ fn main() {
getrandom_01::getrandom(&mut data).unwrap();

getrandom_02::getrandom(&mut data).unwrap();

getrandom_03::fill(&mut data).unwrap();
}

0 comments on commit 0bc2ad5

Please sign in to comment.