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

fijal at codespeak.net fijal at codespeak.net
Wed May 26 00:23:20 CEST 2010


Author: fijal
Date: Wed May 26 00:23:19 2010
New Revision: 74756

Modified:
   pypy/trunk/pypy/translator/goal/targetosreadbench.py
Log:
update & cleanup


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:23:19 2010
@@ -7,13 +7,13 @@
 # __________  Entry point  __________
 
 def entry_point(argv):
-    length = 0
-    if len(argv) > 1:
+    if len(argv) > 2:
         length = int(argv[1])
     else:
         length = 100
+    fname = argv[1]
     for i in xrange(100000):
-        f = os.open(__file__, 0666, os.O_RDONLY)
+        f = os.open(fname, 0666, os.O_RDONLY)
         os.read(f, length)
         os.close(f)
     return 0



More information about the Pypy-commit mailing list