aboutsummaryrefslogtreecommitdiff
path: root/contrib/devtools/test-symbol-check.py
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/devtools/test-symbol-check.py')
-rwxr-xr-xcontrib/devtools/test-symbol-check.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/devtools/test-symbol-check.py b/contrib/devtools/test-symbol-check.py
index ee7bfc9805..6bea5d90f8 100755
--- a/contrib/devtools/test-symbol-check.py
+++ b/contrib/devtools/test-symbol-check.py
@@ -5,12 +5,15 @@
'''
Test script for symbol-check.py
'''
+import os
import subprocess
import unittest
def call_symbol_check(cc, source, executable, options):
subprocess.run([cc,source,'-o',executable] + options, check=True)
p = subprocess.run(['./contrib/devtools/symbol-check.py',executable], stdout=subprocess.PIPE, universal_newlines=True)
+ os.remove(source)
+ os.remove(executable)
return (p.returncode, p.stdout.rstrip())
def get_machine(cc):