4 """Update the OS ABI number of known death test NaCl modules.
6 Driver code to update death test nexe files. The user is expected to
7 run this on a Linux or OSX system (due to file paths) in the
8 native_client directory.
15 import set_abi_version
19 'service_runtime/testdata/integer_overflow_while_madvising.nexe',
20 'service_runtime/testdata/negative_hole.nexe',
21 'service_runtime/testdata/text_too_big.nexe',
25 def GetCurrentAbiVersion():
26 return int(re
.search(r
'^#define.*EF_NACL_ABIVERSION\s+(\d+)',
27 open('include/nacl_elf.h', 'rt').read(),
32 abi
= GetCurrentAbiVersion()
33 for f
in NACL_DEATH_TESTS
:
36 set_abi_version
.ModifyFileOsAbiVersion(f
, abi
)
38 print 'FAILED: ', str(e
)
44 if __name__
== '__main__':