[pypy-svn] r74758 - pypy/trunk/pypy/translator/goal

fijal at codespeak.net fijal at codespeak.net
Wed May 26 00:25:22 CEST 2010


Author: fijal
Date: Wed May 26 00:25:20 2010
New Revision: 74758

Modified:
   pypy/trunk/pypy/translator/goal/targetosreadbench.py
Log:
Store the result somewhere


Modified: pypy/trunk/pypy/translator/goal/targetosreadbench.py
==============================================================================
--- pypy/trunk/pypy/translator/goal/targetosreadbench.py	(original)
+++ pypy/trunk/pypy/translator/goal/targetosreadbench.py	Wed May 26 00:25:20 2010
@@ -12,9 +12,10 @@
     else:
         length = 100
     fname = argv[1]
+    l = []
     for i in xrange(100000):
         f = os.open(fname, 0666, os.O_RDONLY)
-        os.read(f, length)
+        l.append(os.read(f, length))
         os.close(f)
     return 0
 



More information about the Pypy-commit mailing list