Skip to content

Commit

Permalink
Auto merge of rust-lang#2311 - RalfJung:many-seeds, r=RalfJung
Browse files Browse the repository at this point in the history
./miri many-seeds: also print the seed before we try it

When using `cargo miri`, we otherwise have no way of even seeing which seed it is currently on.
  • Loading branch information
bors committed Jul 2, 2022
2 parents f76ebd6 + 733b141 commit c9925ff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions miri
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ COMMAND="$1"
case "$COMMAND" in
many-seeds)
for SEED in $({ echo obase=16; seq 0 255; } | bc); do
echo "Trying seed: $SEED"
MIRIFLAGS="$MIRIFLAGS -Zmiri-seed=$SEED" $@ || { echo "Failing seed: $SEED"; break; }
done
exit 0
Expand Down

0 comments on commit c9925ff

Please sign in to comment.