File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
crates/cargo-codspeed/tests Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,13 @@ use std::process::Command;
2
2
3
3
mod helpers;
4
4
use helpers:: * ;
5
-
6
5
#[ test]
7
6
fn test_cargo_config_rustflags ( ) {
7
+ test_cargo_config_without_rustflags_env ( ) ;
8
+ test_cargo_config_with_rustflags_env ( ) ;
9
+ }
10
+
11
+ fn test_cargo_config_without_rustflags_env ( ) {
8
12
let tmp_dir = setup ( "tests/cargo_config.in" , Project :: Simple ) ;
9
13
10
14
// Test that cargo bench works with the custom flag
@@ -34,7 +38,6 @@ fn test_cargo_config_rustflags() {
34
38
teardown ( tmp_dir) ;
35
39
}
36
40
37
- #[ test]
38
41
fn test_cargo_config_with_rustflags_env ( ) {
39
42
let tmp_dir = setup ( "tests/cargo_config.in" , Project :: Simple ) ;
40
43
@@ -66,4 +69,6 @@ fn test_cargo_config_with_rustflags_env() {
66
69
) ;
67
70
68
71
teardown ( tmp_dir) ;
72
+
73
+ std:: env:: remove_var ( "RUSTFLAGS" ) ;
69
74
}
You can’t perform that action at this time.
0 commit comments