Skip to content

Commit 305b537

Browse files
committed
Add -Zbuild-std test
1 parent b36dd19 commit 305b537

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

tests/integrations/basic-bin/Cargo.stdout

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ running 0 tests
33

44
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished
55

6+
Building dependencies ... ok
7+
tests/actual_tests/foomp.rs ... ok
68
Building dependencies ... ok
79
tests/actual_tests/foomp.rs ... ok
810

9-
test result: ok. 1 passed;
11+
test result: ok. 2 passed;
1012

tests/integrations/basic-bin/tests/ui_tests.rs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,18 @@ fn main() -> ui_test::color_eyre::Result<()> {
2828
config.out_dir = tmp_dir.into();
2929
config.path_stderr_filter(tmp_dir, "$$TMP");
3030

31+
// try with build-std
32+
let config_build_std = config.clone();
33+
config.comment_defaults.base().set_custom(
34+
"dependencies",
35+
DependencyBuilder {
36+
build_std: Some(String::new()),
37+
..DependencyBuilder::default()
38+
},
39+
);
40+
3141
run_tests_generic(
32-
vec![config],
42+
vec![config, config_build_std],
3343
default_file_filter,
3444
default_per_file_config,
3545
// Avoid github actions, as these would end up showing up in `Cargo.stderr`

0 commit comments

Comments
 (0)