@@ -1955,7 +1955,7 @@ fn explicit_examples() {
1955
1955
)
1956
1956
. build ( ) ;
1957
1957
1958
- p. cargo ( "test -v " ) . run ( ) ;
1958
+ p. cargo ( "build --examples " ) . run ( ) ;
1959
1959
p. process ( & p. bin ( "examples/hello" ) )
1960
1960
. with_stdout ( "Hello, World!\n " )
1961
1961
. run ( ) ;
@@ -2126,7 +2126,7 @@ fn implicit_examples() {
2126
2126
)
2127
2127
. build ( ) ;
2128
2128
2129
- p. cargo ( "test " ) . run ( ) ;
2129
+ p. cargo ( "build --examples " ) . run ( ) ;
2130
2130
p. process ( & p. bin ( "examples/hello" ) )
2131
2131
. with_stdout ( "Hello, World!\n " )
2132
2132
. run ( ) ;
@@ -2739,13 +2739,13 @@ fn example_bin_same_name() {
2739
2739
. file ( "examples/foo.rs" , "fn main() {}" )
2740
2740
. build ( ) ;
2741
2741
2742
- p. cargo ( "test --no-run -v " ) . run ( ) ;
2742
+ p. cargo ( "build --examples " ) . run ( ) ;
2743
2743
2744
2744
assert ! ( !p. bin( "foo" ) . is_file( ) ) ;
2745
2745
// We expect a file of the form bin/foo-{metadata_hash}
2746
2746
assert ! ( p. bin( "examples/foo" ) . is_file( ) ) ;
2747
2747
2748
- p. cargo ( "test --no-run -v " ) . run ( ) ;
2748
+ p. cargo ( "build --examples " ) . run ( ) ;
2749
2749
2750
2750
assert ! ( !p. bin( "foo" ) . is_file( ) ) ;
2751
2751
// We expect a file of the form bin/foo-{metadata_hash}
@@ -4212,7 +4212,7 @@ fn inferred_examples() {
4212
4212
. file ( "examples/baz/main.rs" , "fn main() {}" )
4213
4213
. build ( ) ;
4214
4214
4215
- p. cargo ( "test " ) . run ( ) ;
4215
+ p. cargo ( "build --examples " ) . run ( ) ;
4216
4216
assert ! ( p. bin( "examples/bar" ) . is_file( ) ) ;
4217
4217
assert ! ( p. bin( "examples/baz" ) . is_file( ) ) ;
4218
4218
}
0 commit comments