unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
blob 50243505ee27df557aae8aee9e8e490ac8ea476b 981 bytes (raw)
name: patches/python-cffi-x87-stack-clean.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
 
Fix test that fails on i686:

https://bitbucket.org/cffi/cffi/issues/382

This is a squashed version of these commits:
https://bitbucket.org/cffi/cffi/commits/ef09637b2314
https://bitbucket.org/cffi/cffi/commits/7a76a3815340

diff -r 99940f1f5402 testing/cffi0/test_function.py
--- a/testing/cffi0/test_function.py	Tue Feb 27 21:18:33 2018 +0100
+++ b/testing/cffi0/test_function.py	Sun Nov 11 16:26:23 2018 +0100
@@ -45,14 +45,14 @@
         assert x != math.sin(1.23)    # rounding effects
         assert abs(x - math.sin(1.23)) < 1E-6
 
-    def test_sin_no_return_value(self):
+    def test_lround_no_return_value(self):
         # check that 'void'-returning functions work too
         ffi = FFI(backend=self.Backend())
         ffi.cdef("""
-            void sin(double x);
+            void lround(double x);
         """)
         m = ffi.dlopen(lib_m)
-        x = m.sin(1.23)
+        x = m.lround(1.23)
         assert x is None
 
     def test_dlopen_filename(self):

debug log:

solving 50243505ee27df557aae8aee9e8e490ac8ea476b ...
found 50243505ee27df557aae8aee9e8e490ac8ea476b in https://git.savannah.gnu.org/cgit/guix.git

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).