File tree 3 files changed +5
-6
lines changed
3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,7 @@ For example:
73
73
You can (cross-)run the entire test suite using:
74
74
75
75
``` sh
76
+ ./miri test
76
77
./miri test --target i686-unknown-linux-gnu
77
78
```
78
79
Original file line number Diff line number Diff line change @@ -491,10 +491,8 @@ impl Command {
491
491
// Found it!
492
492
e. sh . set_var ( "MIRI_TEST_TARGET" , target) ;
493
493
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" ) ) ?;
498
496
Some ( triple)
499
497
} else if let Ok ( target) = std:: env:: var ( "MIRI_TEST_TARGET" ) {
500
498
// 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`.
87
87
./miri check <flags>:
88
88
Just check miri. <flags> are passed to `cargo check`.
89
89
90
- ./miri test [--bless] [--target] <flags>:
90
+ ./miri test [--bless] [--target <target> ] <flags>:
91
91
Build miri, set up a sysroot and then run the test suite. <flags> are passed
92
92
to the test harness.
93
93
@@ -165,7 +165,7 @@ fn main() -> Result<()> {
165
165
let target_str = value
166
166
. clone ( )
167
167
. into_string ( )
168
- . map_err ( |_| anyhow ! ( "invalid target triple encoding " ) ) ?;
168
+ . map_err ( |_| anyhow ! ( "target triple is not UTF-8 " ) ) ?;
169
169
Some ( target_str)
170
170
} else {
171
171
bail ! ( "no target triple found" )
You can’t perform that action at this time.
0 commit comments