From c6cf354a9acd3d79f3b9fbf08c85aff4c7433bd3 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Fri, 24 Jan 2020 12:28:37 +0100 Subject: Don't use CRLF when generating diffs --- run-tests.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'run-tests.php') diff --git a/run-tests.php b/run-tests.php index 1b0a7e202f..4de196d39d 100755 --- a/run-tests.php +++ b/run-tests.php @@ -2901,7 +2901,7 @@ function generate_diff($wanted, $wanted_re, $output) $r = is_null($wanted_re) ? $w : explode("\n", $wanted_re); $diff = generate_array_diff($r, $o, !is_null($wanted_re), $w); - return implode("\r\n", $diff); + return implode(PHP_EOL, $diff); } function error($message) -- cgit v1.2.1