1
1
mirror of https://github.com/henrydcase/pqc.git synced 2024-11-26 17:31:38 +00:00

Make sure -fsanitizer binaries are always cleaned up

This commit is contained in:
Thom Wiggers 2019-04-16 12:58:43 +02:00
parent 9c4aebd8e3
commit 327429b625
No known key found for this signature in database
GPG Key ID: 001BB0A7CE26E363

View File

@ -60,6 +60,7 @@ def check_functest_sanitizers(implementation):
EXTRAFLAGS='-fsanitize=address,undefined',
working_dir=os.path.join('..', 'test'),
env=env)
try:
helpers.run_subprocess(
[os.path.join('..', 'bin', 'functest_{}_{}{}'.format(
implementation.scheme.name,
@ -69,6 +70,9 @@ def check_functest_sanitizers(implementation):
os.path.join('..', 'bin'),
env=env,
)
except AssertionError as e:
raise e
finally:
# Remove files with ASAN library compiled in
helpers.make('clean-scheme',
TYPE=implementation.scheme.type,