This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,7 @@ For example:
7373You can (cross-)run the entire test suite using:
7474
7575``` sh
76+ ./miri test
7677./miri test --target i686-unknown-linux-gnu
7778```
7879
Original file line number Diff line number Diff line change @@ -491,10 +491,8 @@ impl Command {
491491 // Found it!
492492 e. sh . set_var ( "MIRI_TEST_TARGET" , target) ;
493493
494- let triple = target
495- . clone ( )
496- . into_string ( )
497- . map_err ( |_| anyhow ! ( "invalid target triple encoding" ) ) ?;
494+ let triple =
495+ target. clone ( ) . into_string ( ) . map_err ( |_| anyhow ! ( "target triple is not UTF-8" ) ) ?;
498496 Some ( triple)
499497 } else if let Ok ( target) = std:: env:: var ( "MIRI_TEST_TARGET" ) {
500498 // Convert `MIRI_TEST_TARGET` into `--target`.
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ Just build miri. <flags> are passed to `cargo build`.
8787./miri check <flags>:
8888Just check miri. <flags> are passed to `cargo check`.
8989
90- ./miri test [--bless] [--target] <flags>:
90+ ./miri test [--bless] [--target <target> ] <flags>:
9191Build miri, set up a sysroot and then run the test suite. <flags> are passed
9292to the test harness.
9393
@@ -165,7 +165,7 @@ fn main() -> Result<()> {
165165 let target_str = value
166166 . clone ( )
167167 . into_string ( )
168- . map_err ( |_| anyhow ! ( "invalid target triple encoding " ) ) ?;
168+ . map_err ( |_| anyhow ! ( "target triple is not UTF-8 " ) ) ?;
169169 Some ( target_str)
170170 } else {
171171 bail ! ( "no target triple found" )
You can’t perform that action at this time.
0 commit comments