Loading...
--- libmalloc/libmalloc-657.60.21/tests/add_xzone_tests.py
+++ libmalloc/libmalloc-646.0.13/tests/add_xzone_tests.py
@@ -5,12 +5,10 @@
import plistlib
from os.path import exists
-def create_xzone_test(test, nano_on_xzone=False, force_pgm=False):
+def create_xzone_test(test, nano_on_xzone):
xzone_test = copy.deepcopy(test)
extension = 'nano-on-xzone' if nano_on_xzone else 'xzone'
- if force_pgm:
- extension += '.pgm'
if 'TestName' in xzone_test:
orig_name = xzone_test['TestName']
@@ -39,13 +37,6 @@
envvars.append('MallocNanoOnXzone=1')
else:
envvars.append('MallocSecureAllocatorNano=1')
-
- if force_pgm:
- # If we're forcing PGM, it should already be disabled in the test
- # we're starting with
- assert('MallocProbGuard=0' in xzone_test['ShellEnv'])
- xzone_test['ShellEnv'].remove('MallocProbGuard=0')
- envvars.append('MallocProbGuard=1')
if 'perf' not in xzone_test['Tags'] and \
'no_debug' not in xzone_test['Tags'] and \
@@ -93,22 +84,12 @@
if 'Tags' in test and not disable_xzone:
if 'xzone' in test['Tags'] or 'xzone_only' in test['Tags']:
# This test has been tagged to run with xzone malloc
- xzone_test = create_xzone_test(test)
+ xzone_test = create_xzone_test(test, False)
tests.append(xzone_test)
- if 'xzone_and_pgm' in test['Tags']:
- xzone_and_pgm_test = create_xzone_test(test,
- nano_on_xzone=False, force_pgm=True)
- tests.append(xzone_and_pgm_test)
-
if 'nano_on_xzone' in test['Tags']:
- nano_on_xzone_test = create_xzone_test(test, nano_on_xzone=True)
+ nano_on_xzone_test = create_xzone_test(test, True)
tests.append(nano_on_xzone_test)
-
- if 'xzone_and_pgm' in test['Tags']:
- pgm_on_nano_on_xzone_test = create_xzone_test(test,
- nano_on_xzone=True, force_pgm=True)
- tests.append(pgm_on_nano_on_xzone_test)
new_bats_plist['Tests'] = tests