WARNING! Access to this system is limited to authorised users only.
Unauthorised users may be subject to prosecution.
Unauthorised access to this system is a criminal offence under Australian law (Federal Crimes Act 1914 Part VIA)
It is a criminal offence to:
(1) Obtain access to data without authority. -Penalty 2 years imprisonment.
(2) Damage, delete, alter or insert data without authority. -Penalty 10 years imprisonment.
User activity is monitored and recorded. Anyone using this system expressly consents to such monitoring and recording.

To protect your data, the CISO officer has suggested users to enable 2FA as soon as possible.
Currently 2.7% of users enabled 2FA.

Commit c97cc9d2 authored by John Zhang's avatar John Zhang
Browse files

fix: test fail on linux because there is no "_" prefix in front of these exported symbols

parent 901f4363
......@@ -78,12 +78,10 @@ def exported_symbol_in_dylib(sym_name, libpath):
# use nm program to get a list of symbols in shared library,
# then check if the symbol name is in the list with 'T' (exported symbol)
import subprocess
from rpython.translator.platform import platform
output = str(subprocess.check_output('nm %(flag)s %(libpath)s' % {
'flag': '-D' if platform.name.startswith('linux') else '',
'libpath': libpath
}, shell=True))
return 'T _%(sym_name)s' % locals() in output # exported symbol
from rpython.translator.platform import platform, linux
output = str(subprocess.check_output('nm ' + str(libpath), shell=True))
expected = 'T %s' % '' if isinstance(platform, linux.BaseLinux) else '_'
return 'T %(sym_name)s' % locals() in output # exported symbol
def test_extern_funcs_macro_wrapper():
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment