gb.test.tap: Support multiline diagnostics

[GB.TEST.TAP]
* NEW: Support multiline diagnostics.
This commit is contained in:
Tobias Boege 2020-02-23 20:20:03 +01:00
parent 235169553c
commit b583aeaeed
2 changed files with 7 additions and 1 deletions

View file

@ -31,6 +31,8 @@ Public Sub Main()
Exec ["/usr/bin/mountpoint", "/home"] To sCapture
.Equals(Process.LastValue, 0, "/home is a mountpoint")
Endif
.Note("That's it.\nBye.")
End With
End

View file

@ -98,7 +98,11 @@ End
Public Sub Diagnostic(Comment As String)
Print("# " & Comment)
Dim sLine As String
For Each sLine In Split(Trim$(Comment), "\n")
Print("# " & sLine)
Next
End