From 4846e4e4527968c03fab745d7baaf6fb9ee8db4d Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Thu, 31 Aug 2017 13:59:06 +0200 Subject: [PATCH] tester: make 'nimout' matching more robust against whitespace issues --- tests/testament/tester.nim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/testament/tester.nim b/tests/testament/tester.nim index b83eb668a4..d5ff9b2c83 100644 --- a/tests/testament/tester.nim +++ b/tests/testament/tester.nim @@ -64,7 +64,11 @@ let var targets = {low(TTarget)..high(TTarget)} -proc normalizeMsg(s: string): string = s.strip.replace("\C\L", "\L") +proc normalizeMsg(s: string): string = + result = newStringOfCap(s.len+1) + for x in splitLines(s): + result.add x.strip + result.add '\L' proc callCompiler(cmdTemplate, filename, options: string, target: TTarget): TSpec =