[pypy-svn] r28810 - pypy/dist/pypy/translator/c/test

pedronis at codespeak.net pedronis at codespeak.net
Thu Jun 15 14:38:20 CEST 2006


Author: pedronis
Date: Thu Jun 15 14:38:20 2006
New Revision: 28810

Modified:
   pypy/dist/pypy/translator/c/test/test_boehm.py
Log:
test a bit more



Modified: pypy/dist/pypy/translator/c/test/test_boehm.py
==============================================================================
--- pypy/dist/pypy/translator/c/test/test_boehm.py	(original)
+++ pypy/dist/pypy/translator/c/test/test_boehm.py	Thu Jun 15 14:38:20 2006
@@ -167,13 +167,13 @@
             try:
                 x = alloc(N)
             except MemoryError:
-                alloc(10)
-                return 0
-            alloc(10)
-            return 0 # allocation may work on 64 bits machines
+                y = alloc(10)
+                return len(y)
+            y = alloc(10)
+            return len(y) # allocation may work on 64 bits machines
         fn = self.getcompiled(f)
         res = fn()
-        assert res == 0
+        assert res == 10
         
 
 class TestUsingExactBoehm(TestUsingBoehm):



More information about the Pypy-commit mailing list