Index: tests/test.py
===================================================================
--- tests/test.py	(revision 64cf022b37f2d2037efeb782541e1ddaf7a595b2)
+++ tests/test.py	(revision 65583e2f5b53ff628487cc8ad56ab3f1b18108c8)
@@ -206,6 +206,9 @@
 
 		else:
-			with open (out_file, "r") as myfile:
-				error = myfile.read()
+			if os.stat(out_file).st_size < 1048576
+				with open (out_file, "r") as myfile:
+					error = myfile.read()
+			else:
+				error = "Output log can't be read, file is bigger than 1MB, see {} for actual error\n".format(out_file)
 
 			ret, info = core_info(exe_file)
