Author: Richard Plangger <planri...@gmail.com>
Branch: 
Changeset: r84349:aa75f1381bfa
Date: 2016-05-10 11:51 +0200
http://bitbucket.org/pypy/pypy/changeset/aa75f1381bfa/

Log:    fixed issue #2172. the test specified an invalid parameter for
        memory protection of the mmap call. powerpc rejects that parameter

diff --git a/rpython/rlib/test/test_rmmap.py b/rpython/rlib/test/test_rmmap.py
--- a/rpython/rlib/test/test_rmmap.py
+++ b/rpython/rlib/test/test_rmmap.py
@@ -296,7 +296,7 @@
         f = open(self.tmpname + "l2", "w+")
         f.write("foobar")
         f.flush()
-        m = mmap.mmap(f.fileno(), 6, prot=~mmap.PROT_WRITE)
+        m = mmap.mmap(f.fileno(), 6, prot=mmap.PROT_READ|mmap.PROT_EXEC)
         py.test.raises(RTypeError, m.check_writeable)
         py.test.raises(RTypeError, m.check_writeable)
         m.close()
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to