From cb7f8671ab028ea65ca37c7be2c29ddbb5ac6425 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jurko=20Gospodneti=C4=87?= Date: Sat, 16 Jun 2012 02:29:36 +0000 Subject: [PATCH] Corrected a bug in the Boost Build testing framework causing it to read file content with an additional newline character at the end when it already had one there instead of when it was missing. [SVN r78968] --- test/BoostBuild.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/BoostBuild.py b/test/BoostBuild.py index 91c4bcae1..babe0dab1 100644 --- a/test/BoostBuild.py +++ b/test/BoostBuild.py @@ -568,7 +568,7 @@ class Tester(TestCmd.TestCmd): f = open(self.glob_file(name), "rb") lines = f.readlines() result = string.join(map(string.rstrip, lines), "\n") - if lines and lines[-1][-1] == '\n': + if lines and lines[-1][-1] != '\n': return result + '\n' else: return result