contrib: drop dead get_machine from test sym check

This commit is contained in:
fanquake 2024-05-10 00:13:50 +08:00
parent e6aba463ad
commit b59a027d95
No known key found for this signature in database
GPG Key ID: 2EEB9F5CC09526C1

View File

@ -27,10 +27,6 @@ def call_symbol_check(cc: list[str], source, executable, options):
os.remove(executable)
return (p.returncode, p.stdout.rstrip())
def get_machine(cc: list[str]):
p = subprocess.run([*cc,'-dumpmachine'], stdout=subprocess.PIPE, text=True)
return p.stdout.rstrip()
class TestSymbolChecks(unittest.TestCase):
def test_ELF(self):
source = 'test1.c'