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,21 +60,25 @@ def check_functest_sanitizers(implementation):
EXTRAFLAGS='-fsanitize=address,undefined', EXTRAFLAGS='-fsanitize=address,undefined',
working_dir=os.path.join('..', 'test'), working_dir=os.path.join('..', 'test'),
env=env) env=env)
helpers.run_subprocess( try:
[os.path.join('..', 'bin', 'functest_{}_{}{}'.format( helpers.run_subprocess(
implementation.scheme.name, [os.path.join('..', 'bin', 'functest_{}_{}{}'.format(
implementation.name, implementation.scheme.name,
'.exe' if os.name == 'nt' else '' implementation.name,
))], '.exe' if os.name == 'nt' else ''
os.path.join('..', 'bin'), ))],
env=env, os.path.join('..', 'bin'),
) env=env,
# Remove files with ASAN library compiled in )
helpers.make('clean-scheme', except AssertionError as e:
TYPE=implementation.scheme.type, raise e
SCHEME=implementation.scheme.name, finally:
IMPLEMENTATION=implementation.name, # Remove files with ASAN library compiled in
working_dir=os.path.join('..', 'test')) helpers.make('clean-scheme',
TYPE=implementation.scheme.type,
SCHEME=implementation.scheme.name,
IMPLEMENTATION=implementation.name,
working_dir=os.path.join('..', 'test'))
if __name__ == '__main__': if __name__ == '__main__':