Skip to content

Commit

Permalink
test_entropy: fail again, but disable on arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesm committed Dec 6, 2024
1 parent 5c885b0 commit 53b1898
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion tests/dune
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@
(name test_entropy)
(modules test_entropy)
(package mirage-crypto-rng)
(libraries mirage-crypto-rng ohex))
(libraries mirage-crypto-rng ohex)
(enabled_if (<> %{architecture} "arm64")))
; see https://github.com/mirage/mirage-crypto/issues/216

(test
(name test_ec)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_entropy.ml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ let timer_check () =
let data' = Mirage_crypto_rng.Entropy.interrupt_hook () in
if String.equal !data data' then begin
Ohex.pp Format.std_formatter data';
print_endline ("same data from timer at " ^ string_of_int i);
failwith ("same data from timer at " ^ string_of_int i);
end;
data := data'
done
Expand Down

0 comments on commit 53b1898

Please sign in to comment.