diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2014-12-19 19:47:55 -0700 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2014-12-24 10:38:42 -0700 |
commit | 75666e3abce678b4ddaee1c9f65ea497a234fae0 (patch) | |
tree | 477bf39f128d422c92f27dfbf9410d3791f60978 /numpy/linalg/tests | |
parent | 3ef77eea0d9c2cd76bc9b89b04a32f1322f842d5 (diff) | |
download | numpy-75666e3abce678b4ddaee1c9f65ea497a234fae0.tar.gz |
BUG: Xerbla doesn't get linked in 1.10-devel.
Add our python_xerbla to the multiarray sources. That function is
needed for all modules that link to the ATLAS 3.10 libraries, which
are now all located in two files, libsatlas and libtatlas.
Also make the test for xerbla linkage work better. If xerbla is not
linked the test will be skipped with a message.
Closes #5362.
Diffstat (limited to 'numpy/linalg/tests')
-rw-r--r-- | numpy/linalg/tests/test_linalg.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/numpy/linalg/tests/test_linalg.py b/numpy/linalg/tests/test_linalg.py index 63baa590d..81347ac94 100644 --- a/numpy/linalg/tests/test_linalg.py +++ b/numpy/linalg/tests/test_linalg.py @@ -1152,6 +1152,8 @@ def test_xerbla_override(): # and may, or may not, abort the process depending on the LAPACK package. from nose import SkipTest + XERBLA_OK = 255 + try: pid = os.fork() except (OSError, AttributeError): @@ -1181,15 +1183,16 @@ def test_xerbla_override(): a, a, 0, 0) except ValueError as e: if "DORGQR parameter number 5" in str(e): - # success - os._exit(os.EX_OK) + # success, reuse error code to mark success as + # FORTRAN STOP returns as success. + os._exit(XERBLA_OK) # Did not abort, but our xerbla was not linked in. os._exit(os.EX_CONFIG) else: # parent pid, status = os.wait() - if os.WEXITSTATUS(status) != os.EX_OK or os.WIFSIGNALED(status): + if os.WEXITSTATUS(status) != XERBLA_OK: raise SkipTest('Numpy xerbla not linked in.') |