Skip to content

Commit

Permalink
Remove the RTLD_GLOBAL mode in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sunqm committed Jan 25, 2024
1 parent f2331df commit 8d13863
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 12 deletions.
3 changes: 1 addition & 2 deletions testsuite/test_3c2e.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
import ctypes
import numpy

_cint = ctypes.CDLL(os.path.abspath(os.path.join(__file__, '../../build/libcint.so')),
mode=os.RTLD_GLOBAL|os.RTLD_NOW)
_cint = ctypes.CDLL(os.path.abspath(os.path.join(__file__, '../../build/libcint.so')))

PTR_LIGHT_SPEED = 0
PTR_COMMON_ORIG = 1
Expand Down
3 changes: 1 addition & 2 deletions testsuite/test_cart2sph.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
sys.path.insert(0, os.path.abspath(os.path.join(__file__, '../../scripts')))
import cart2sph

_cint = ctypes.CDLL(os.path.abspath(os.path.join(__file__, '../../build/libcint.so')),
mode=os.RTLD_GLOBAL|os.RTLD_NOW)
_cint = ctypes.CDLL(os.path.abspath(os.path.join(__file__, '../../build/libcint.so')))

pauli = np.array([[[0., 1.],
[1., 0.]], # x
Expand Down
3 changes: 1 addition & 2 deletions testsuite/test_cint.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
import ctypes
import numpy

_cint = ctypes.CDLL(os.path.abspath(os.path.join(__file__, '../../build/libcint.so')),
mode=os.RTLD_GLOBAL|os.RTLD_NOW)
_cint = ctypes.CDLL(os.path.abspath(os.path.join(__file__, '../../build/libcint.so')))


PTR_EXPCUTOFF = 0
Expand Down
3 changes: 1 addition & 2 deletions testsuite/test_int1e_grids.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
import ctypes
import numpy

_cint = ctypes.CDLL(os.path.abspath(os.path.join(__file__, '../../build/libcint.so')),
mode=os.RTLD_GLOBAL|os.RTLD_NOW)
_cint = ctypes.CDLL(os.path.abspath(os.path.join(__file__, '../../build/libcint.so')))

PTR_EXPCUTOFF = 0
PTR_COMMON_ORIG = 1
Expand Down
3 changes: 1 addition & 2 deletions testsuite/test_int2e_f12_etc.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
import ctypes
import numpy

_cint = ctypes.CDLL(os.path.abspath(os.path.join(__file__, '../../build/libcint.so')),
mode=os.RTLD_GLOBAL|os.RTLD_NOW)
_cint = ctypes.CDLL(os.path.abspath(os.path.join(__file__, '../../build/libcint.so')))

from pyscf import gto, lib

Expand Down
3 changes: 1 addition & 2 deletions testsuite/test_int3c2e.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
import ctypes
import numpy

_cint = ctypes.CDLL(os.path.abspath(os.path.join(__file__, '../../build/libcint.so')),
mode=os.RTLD_GLOBAL|os.RTLD_NOW)
_cint = ctypes.CDLL(os.path.abspath(os.path.join(__file__, '../../build/libcint.so')))

from pyscf import gto, lib

Expand Down

0 comments on commit 8d13863

Please sign in to comment.