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