Author: Richard Plangger <planri...@gmail.com>
Branch: s390x-backend
Changeset: r82640:b9cd7126874f
Date: 2016-03-01 17:57 +0100
http://bitbucket.org/pypy/pypy/changeset/b9cd7126874f/

Log:    bytecode and constants are correctly passed, need to modify
        hypothesis to generate correct programs

diff --git a/rpython/jit/backend/llsupport/tl/interp.py 
b/rpython/jit/backend/llsupport/tl/interp.py
--- a/rpython/jit/backend/llsupport/tl/interp.py
+++ b/rpython/jit/backend/llsupport/tl/interp.py
@@ -63,8 +63,8 @@
     return consts
 
 def entry_point(argv):
-    bytecode = _read_bytecode_from_file(argv[0])
-    consts = _read_consts_from_file(argv[1])
+    bytecode = _read_bytecode_from_file(argv[1])
+    consts = _read_consts_from_file(argv[2])
     print(bytecode)
     print(consts)
     pc = 0
diff --git a/rpython/jit/backend/llsupport/tl/test/zrpy_gc_hypo_test.py 
b/rpython/jit/backend/llsupport/tl/test/zrpy_gc_hypo_test.py
--- a/rpython/jit/backend/llsupport/tl/test/zrpy_gc_hypo_test.py
+++ b/rpython/jit/backend/llsupport/tl/test/zrpy_gc_hypo_test.py
@@ -57,4 +57,6 @@
     def test_execute_single_bytecode(self, program):
         clazz, bytecode, consts, stack = program
         result, out, err = self.execute(bytecode, consts)
-        assert result == 0
+        if result != 0:
+            raise Exception(("could not run program. returned %d"
+                            " stderr:\n%s\nstdout:\n%s\n") % (result, err, 
out))
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to