Index: src/tests/test.py
===================================================================
--- src/tests/test.py	(revision 7985fa5410478aa52d6410c814bd9432dab4d748)
+++ src/tests/test.py	(revision ac032b5138e48f4b7e45f5926201782c05a63ffc)
@@ -197,4 +197,10 @@
 			# fetch return code and error from the diff command
 			retcode, error = diff(".expect/%s.txt" % test.path, ".out/%s.log" % test.name, dry_run)
+
+	else:
+		with open (out_file, "r") as myfile:
+			error = myfile.read()
+
+		
 	# clean the executable
 	sh("rm -f %s > /dev/null 2>&1" % test.name, dry_run)
