@@ -50,7 +50,7 @@ def test(name, cmd, stdout_ref, stderr_ref, stdin=b'', env={}):
5050 fail ("stderr does not match reference" )
5151
5252def test_cargo_miri_run ():
53- test ("`cargo miri run` (without isolation)" ,
53+ test ("`cargo miri run` (no isolation)" ,
5454 cargo_miri ("run" ),
5555 "stdout.ref1" , "stderr.ref1" ,
5656 stdin = b'12\n 21\n ' ,
@@ -61,9 +61,9 @@ def test_cargo_miri_run():
6161 )
6262 test ("`cargo miri run` (with arguments and target)" ,
6363 cargo_miri ("run" ) + ["--bin" , "cargo-miri-test" , "--" , "hello world" , '"hello world"' ],
64- "stdout.ref2" , "stderr.ref2"
64+ "stdout.ref2" , "stderr.ref2" ,
6565 )
66- test ("`cargo miri run` (subcrate)" ,
66+ test ("`cargo miri run` (subcrate, no ioslation )" ,
6767 cargo_miri ("run" ) + ["-p" , "subcrate" ],
6868 "stdout.ref3" , "stderr.ref3" ,
6969 env = {'MIRIFLAGS' : "-Zmiri-disable-isolation" },
@@ -76,25 +76,30 @@ def test_cargo_miri_test():
7676
7777 test ("`cargo miri test`" ,
7878 cargo_miri ("test" ),
79- "test.stdout.ref1" ,rustdoc_ref ,
79+ "test.stdout.ref1" , rustdoc_ref ,
8080 env = {'MIRIFLAGS' : "-Zmiri-seed=feed" },
8181 )
82+ test ("`cargo miri test` (no isolation)" ,
83+ cargo_miri ("test" ),
84+ "test.stdout.ref1" , rustdoc_ref ,
85+ env = {'MIRIFLAGS' : "-Zmiri-disable-isolation" },
86+ )
8287 test ("`cargo miri test` (with filter)" ,
8388 cargo_miri ("test" ) + ["--" , "--format=pretty" , "le1" ],
84- "test.stdout.ref2" , rustdoc_ref
85- )
86- test ("`cargo miri test` (without isolation)" ,
87- cargo_miri ("test" ) + ["--" , "--format=pretty" , "num_cpus" ],
88- "test.stdout.ref3" , rustdoc_ref ,
89- env = {'MIRIFLAGS' : "-Zmiri-disable-isolation" },
89+ "test.stdout.ref2" , rustdoc_ref ,
9090 )
9191 test ("`cargo miri test` (test target)" ,
9292 cargo_miri ("test" ) + ["--test" , "test" , "--" , "--format=pretty" ],
93- "test.stdout.ref4 " , "test.stderr.ref2"
93+ "test.stdout.ref3 " , "test.stderr.ref2" ,
9494 )
9595 test ("`cargo miri test` (bin target)" ,
9696 cargo_miri ("test" ) + ["--bin" , "cargo-miri-test" , "--" , "--format=pretty" ],
97- "test.stdout.ref5" , "test.stderr.ref2"
97+ "test.stdout.ref4" , "test.stderr.ref2" ,
98+ )
99+ test ("`cargo miri test` (subcrate)" ,
100+ cargo_miri ("test" ) + ["-p" , "subcrate" ],
101+ "test.stdout.ref5" , "test.stderr.ref2" ,
102+ env = {'MIRIFLAGS' : "-Zmiri-disable-isolation" },
98103 )
99104
100105os .chdir (os .path .dirname (os .path .realpath (__file__ )))
0 commit comments