Changeset View
Changeset View
Standalone View
Standalone View
contrib/devtools/test-symbol-check.py
Show First 20 Lines • Show All 135 Lines • ▼ Show 20 Lines | def test_MACHO(self): | ||||
int main() | int main() | ||||
{ | { | ||||
return 0; | return 0; | ||||
} | } | ||||
''') | ''') | ||||
self.assertEqual(call_symbol_check(cc, source, executable, | self.assertEqual(call_symbol_check(cc, source, executable, | ||||
['-Wl,-platform_version', '-Wl,macos', | ['-Wl,-platform_version', '-Wl,macos', | ||||
'-Wl,10.14', '-Wl,11.4']), | '-Wl,10.15', '-Wl,11.4']), | ||||
(1, f'{executable}: failed SDK')) | (1, f'{executable}: failed SDK')) | ||||
def test_PE(self): | def test_PE(self): | ||||
source = 'test1.c' | source = 'test1.c' | ||||
executable = 'test1.exe' | executable = 'test1.exe' | ||||
cc = determine_wellknown_cmd('CC', 'x86_64-w64-mingw32-gcc') | cc = determine_wellknown_cmd('CC', 'x86_64-w64-mingw32-gcc') | ||||
with open(source, 'w', encoding="utf8") as f: | with open(source, 'w', encoding="utf8") as f: | ||||
▲ Show 20 Lines • Show All 54 Lines • Show Last 20 Lines |