Fix sanitizer test

This commit is contained in:
Thom Wiggers 2019-04-15 16:04:50 +02:00
parent ff71e7de11
commit a5e906a306
No known key found for this signature in database
GPG Key ID: 001BB0A7CE26E363

View File

@ -14,14 +14,14 @@ import helpers
def test_functest(): def test_functest():
for scheme in pqclean.Scheme.all_schemes(): for scheme in pqclean.Scheme.all_schemes():
for implementation in scheme.implementations: for implementation in scheme.implementations:
if helpers.permit_test('functest', implementation): if helpers.permit_test('functest', implementation):
yield check_functest, implementation yield check_functest, implementation
def test_functest_sanitizers(): def test_functest_sanitizers():
for scheme in pqclean.Scheme.all_schemes(): for scheme in pqclean.Scheme.all_schemes():
for implementation in scheme.implementations: for implementation in scheme.implementations:
if helpers.permit_test('functest_sanitizers', implementation): if helpers.permit_test('functest_sanitizers', implementation):
yield check_functest_sanitizers, implementation yield check_functest_sanitizers, implementation
@ -41,7 +41,7 @@ def check_functest(implementation):
) )
@helpers.skip_windows @helpers.skip_windows()
def check_functest_sanitizers(implementation): def check_functest_sanitizers(implementation):
env = None env = None
if platform.machine() == 'ppc' and os.environ.get('CC', 'gcc') == 'clang': if platform.machine() == 'ppc' and os.environ.get('CC', 'gcc') == 'clang':