Skip to content

Commit f67c3f4

Browse files
committed
Default test output conflict handling to error
1 parent 74f611f commit f67c3f4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/compile-test.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#![allow(unused_extern_crates)]
66

77
use ui_test::spanned::Spanned;
8-
use ui_test::{status_emitter, Args, CommandBuilder, Config, Match, Mode};
8+
use ui_test::{status_emitter, Args, CommandBuilder, Config, Match, Mode, OutputConflictHandling};
99

1010
use std::collections::BTreeMap;
1111
use std::env::{self, set_var, var_os};
@@ -113,6 +113,7 @@ fn base_config(test_dir: &str) -> (Config, Args) {
113113

114114
let target_dir = PathBuf::from(var_os("CARGO_TARGET_DIR").unwrap_or_else(|| "target".into()));
115115
let mut config = Config {
116+
output_conflict_handling: OutputConflictHandling::Error,
116117
filter_files: env::var("TESTNAME")
117118
.map(|filters| filters.split(',').map(str::to_string).collect())
118119
.unwrap_or_default(),

0 commit comments

Comments
 (0)