[pypy-svn] r14461 - pypy/dist/pypy/translator/llvm2/test

pedronis at codespeak.net pedronis at codespeak.net
Sun Jul 10 03:07:34 CEST 2005


Author: pedronis
Date: Sun Jul 10 03:07:33 2005
New Revision: 14461

Modified:
   pypy/dist/pypy/translator/llvm2/test/test_extfunc.py
Log:
give these tests a better chance to work



Modified: pypy/dist/pypy/translator/llvm2/test/test_extfunc.py
==============================================================================
--- pypy/dist/pypy/translator/llvm2/test/test_extfunc.py	(original)
+++ pypy/dist/pypy/translator/llvm2/test/test_extfunc.py	Sun Jul 10 03:07:33 2005
@@ -55,7 +55,7 @@
     import os
     def openclose(a,b,c,d,e,f): 
         s = chr(a) + chr(b) + chr(c) + chr(d) + chr(e) + chr(f)
-        fd = os.open(s, os.O_CREAT|os.O_RDWR) 
+        fd = os.open(s, os.O_CREAT|os.O_RDWR, 0777) 
         os.close(fd)
         return fd 
 
@@ -72,7 +72,7 @@
     import os
     def openwriteclose(a,b,c,d,e,f): 
         s = chr(a) + chr(b) + chr(c) + chr(d) + chr(e) + chr(f)
-        fd = os.open(s, os.O_CREAT|os.O_RDWR) 
+        fd = os.open(s, os.O_CREAT|os.O_RDWR, 0777) 
         byteswritten = os.write(fd, s)
         os.close(fd)
         return byteswritten
@@ -92,11 +92,11 @@
     def openwriteclose_openreadclose(a,b,c,d,e,f): 
         s = chr(a) + chr(b) + chr(c) + chr(d) + chr(e) + chr(f)
 
-        fd = os.open(s, os.O_CREAT|os.O_RDWR) 
+        fd = os.open(s, os.O_CREAT|os.O_RDWR, 0777) 
         byteswritten = os.write(fd, s+s+s)
         os.close(fd)
 
-        fd = os.open(s, os.O_RDWR) 
+        fd = os.open(s, os.O_RDWR, 0777) 
         maxread = 1000
         r = os.read(fd, maxread)
         os.close(fd)



More information about the Pypy-commit mailing list