join: use show_error instead of eprintln (#11932)

This commit is contained in:
Daniel Hofstetter
2026-04-23 09:41:19 +02:00
committed by GitHub
parent 3dc8794ada
commit 25a5b3f0b9
2 changed files with 6 additions and 13 deletions
+2 -4
View File
@@ -357,8 +357,7 @@ fn wrong_line_order() {
.fails()
.stdout_contains("7 g f 4 fg")
.stderr_is(format!(
"{0} {1}: fields_4.txt:5: is not sorted: 11 g 5 gh\n{0} {1}: input is not in sorted order\n",
ts.bin_path.to_string_lossy(),
"{0}: fields_4.txt:5: is not sorted: 11 g 5 gh\n{0}: input is not in sorted order\n",
ts.util_name
));
@@ -383,8 +382,7 @@ fn both_files_wrong_line_order() {
.fails()
.stdout_contains("5 e 3 ef")
.stderr_is(format!(
"{0} {1}: fields_5.txt:4: is not sorted: 3\n{0} {1}: fields_4.txt:5: is not sorted: 11 g 5 gh\n{0} {1}: input is not in sorted order\n",
ts.bin_path.to_string_lossy(),
"{0}: fields_5.txt:4: is not sorted: 3\n{0}: fields_4.txt:5: is not sorted: 11 g 5 gh\n{0}: input is not in sorted order\n",
ts.util_name
));