@@ -509,12 +509,15 @@ public class Fuzzer {
509509 func processCommon( _ program: Program ) {
510510 let hasCrashInfo = program. comments. at ( . footer) ? . contains ( " CRASH INFO " ) ?? false
511511 if !hasCrashInfo {
512- program. comments. add ( " CRASH INFO \n ========== \n " , at: . footer)
513- program. comments. add ( " TERMSIG: \( termsig) \n " , at: . footer)
514- program. comments. add ( " STDERR: \n " + stderr, at: . footer)
515- program. comments. add ( " STDOUT: \n " + stdout, at: . footer)
516- program. comments. add ( " ARGS: \( runner. processArguments. joined ( separator: " " ) ) \n " , at: . footer)
517- program. comments. add ( " EXECUTION TIME: \( Int ( exectime * 1000 ) ) ms " , at: . footer)
512+ program. comments. add ( " CRASH INFO " , at: . footer)
513+ program. comments. add ( " ========== " , at: . footer)
514+ program. comments. add ( " TERMSIG: \( termsig) " , at: . footer)
515+ program. comments. add ( " STDERR: " , at: . footer)
516+ program. comments. add ( stderr. trimmingCharacters ( in: . newlines) , at: . footer)
517+ program. comments. add ( " STDOUT: " , at: . footer)
518+ program. comments. add ( stdout. trimmingCharacters ( in: . newlines) , at: . footer)
519+ program. comments. add ( " ARGS: \( runner. processArguments. joined ( separator: " " ) ) " , at: . footer)
520+ program. comments. add ( " EXECUTION TIME: \( Int ( exectime * 1000 ) ) ms " , at: . footer)
518521 }
519522 assert ( program. comments. at ( . footer) ? . contains ( " CRASH INFO " ) ?? false )
520523
0 commit comments