Skip to content

Commit 3504145

Browse files
committed
Auto merge of #13164 - flip1995:ui-test-bump, r=Alexendoo
Bump ui_test version -> 0.25 r? `@Alexendoo` cc `@GuillaumeGomez` changelog: none
2 parents 345c94c + 82b4434 commit 3504145

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ color-print = "0.3.4"
3030
anstream = "0.6.0"
3131

3232
[dev-dependencies]
33-
ui_test = "0.24"
33+
ui_test = "0.25"
3434
regex = "1.5.5"
3535
toml = "0.7.3"
3636
walkdir = "2.3"

tests/compile-test.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,8 @@ fn run_ui_toml() {
209209
ui_test::run_tests_generic(
210210
vec![config],
211211
ui_test::default_file_filter,
212-
|config, path, _file_contents| {
212+
|config, file_contents| {
213+
let path = file_contents.span().file;
213214
config
214215
.program
215216
.envs
@@ -261,7 +262,7 @@ fn run_ui_cargo() {
261262
path.ends_with("Cargo.toml")
262263
.then(|| ui_test::default_any_file_filter(path, config) && !ignored_32bit(path))
263264
},
264-
|_config, _path, _file_contents| {},
265+
|_config, _file_contents| {},
265266
status_emitter::Text::from(args.format),
266267
)
267268
.unwrap();

0 commit comments

Comments
 (0)