tester: make 'nimout' matching more robust against whitespace issues

This commit is contained in:
Andreas Rumpf
2017-08-31 13:59:06 +02:00
parent 6467e55ae8
commit 4846e4e452

View File

@@ -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 =