Skip to content

Commit 7142d50

Browse files
committed
scripts: rename test_64bit_PE to test_PE
1 parent edaca2d commit 7142d50

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

contrib/devtools/test-security-check.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,20 @@ def test_ELF(self):
4343
self.assertEqual(call_security_check(cc, source, executable, ['-Wl,-znoexecstack','-fstack-protector-all','-Wl,-zrelro','-Wl,-z,now','-pie','-fPIE']),
4444
(0, ''))
4545

46-
def test_64bit_PE(self):
46+
def test_PE(self):
4747
source = 'test1.c'
4848
executable = 'test1.exe'
4949
cc = 'x86_64-w64-mingw32-gcc'
5050
write_testcode(source)
5151

52-
self.assertEqual(call_security_check(cc, source, executable, ['-Wl,--no-nxcompat','-Wl,--no-dynamicbase','-Wl,--no-high-entropy-va']), (1, executable+': failed DYNAMIC_BASE HIGH_ENTROPY_VA NX'))
53-
self.assertEqual(call_security_check(cc, source, executable, ['-Wl,--nxcompat','-Wl,--no-dynamicbase','-Wl,--no-high-entropy-va']), (1, executable+': failed DYNAMIC_BASE HIGH_ENTROPY_VA'))
54-
self.assertEqual(call_security_check(cc, source, executable, ['-Wl,--nxcompat','-Wl,--dynamicbase','-Wl,--no-high-entropy-va']), (1, executable+': failed HIGH_ENTROPY_VA'))
55-
self.assertEqual(call_security_check(cc, source, executable, ['-Wl,--nxcompat','-Wl,--dynamicbase','-Wl,--high-entropy-va']), (0, ''))
52+
self.assertEqual(call_security_check(cc, source, executable, ['-Wl,--no-nxcompat','-Wl,--no-dynamicbase','-Wl,--no-high-entropy-va']),
53+
(1, executable+': failed DYNAMIC_BASE HIGH_ENTROPY_VA NX'))
54+
self.assertEqual(call_security_check(cc, source, executable, ['-Wl,--nxcompat','-Wl,--no-dynamicbase','-Wl,--no-high-entropy-va']),
55+
(1, executable+': failed DYNAMIC_BASE HIGH_ENTROPY_VA'))
56+
self.assertEqual(call_security_check(cc, source, executable, ['-Wl,--nxcompat','-Wl,--dynamicbase','-Wl,--no-high-entropy-va']),
57+
(1, executable+': failed HIGH_ENTROPY_VA'))
58+
self.assertEqual(call_security_check(cc, source, executable, ['-Wl,--nxcompat','-Wl,--dynamicbase','-Wl,--high-entropy-va']),
59+
(0, ''))
5660

5761
def test_MACHO(self):
5862
source = 'test1.c'

0 commit comments

Comments
 (0)