Index: tests/test.py
===================================================================
--- tests/test.py	(revision 998c1060e28d11706c02b49c85457ac9f24f8852)
+++ 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)
