From dac8ee1cb6adeeaa0bf28be5caf8c1c082181250 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Sun, 4 Jan 2009 15:56:38 +0000 Subject: [PATCH] fix PDO and other 'redirected' tests - add that "# original source" line only if the test fails --- run-tests.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run-tests.php b/run-tests.php index 0c2ecb942d..f89535c5d3 100755 --- a/run-tests.php +++ b/run-tests.php @@ -1338,7 +1338,6 @@ TEST $file if (is_array($IN_REDIRECT)) { $tested = $IN_REDIRECT['prefix'] . ' ' . trim($section_text['TEST']); $tested_file = $tmp_relative_file; - $section_text['FILE'] = "# original source file: $shortname\n" . $section_text['FILE']; } // unlink old test results @@ -1871,6 +1870,7 @@ COMMAND $cmd // write .diff $diff = generate_diff($wanted, $wanted_re, $output); + $diff = "# original source file: $shortname\n" . $diff; show_file_block('diff', $diff); if (strpos($log_format, 'D') !== false && file_put_contents($diff_filename, (binary) $diff, FILE_BINARY) === false) { error("Cannot create test diff - $diff_filename"); -- 2.40.0