Skip to content

Commit 6e4f641

Browse files
zaniebindygreg
andauthored
gh-128473: Skip segfaulting test_embed tests when BOLT instrumented (gh-128474)
* Skip segfaulting `test_embed` tests when BOLT instrumented Co-authored-by: Gregory Szorc <[email protected]> * NEWS --------- Co-authored-by: Gregory Szorc <[email protected]>
1 parent bd3baa8 commit 6e4f641

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Diff for: Lib/test/test_embed.py

+4
Original file line numberDiff line numberDiff line change
@@ -940,6 +940,7 @@ def check_all_configs(self, testname, expected_config=None,
940940
self.check_global_config(configs)
941941
return configs
942942

943+
@unittest.skipIf(support.check_bolt_optimized, "segfaults on BOLT instrumented binaries")
943944
def test_init_default_config(self):
944945
self.check_all_configs("test_init_initialize_config", api=API_COMPAT)
945946

@@ -1039,6 +1040,7 @@ def test_init_from_config(self):
10391040
self.check_all_configs("test_init_from_config", config, preconfig,
10401041
api=API_COMPAT)
10411042

1043+
@unittest.skipIf(support.check_bolt_optimized, "segfaults on BOLT instrumented binaries")
10421044
def test_init_compat_env(self):
10431045
preconfig = {
10441046
'allocator': ALLOCATOR_FOR_CONFIG,
@@ -1074,6 +1076,7 @@ def test_init_compat_env(self):
10741076
self.check_all_configs("test_init_compat_env", config, preconfig,
10751077
api=API_COMPAT)
10761078

1079+
@unittest.skipIf(support.check_bolt_optimized, "segfaults on BOLT instrumented binaries")
10771080
def test_init_python_env(self):
10781081
preconfig = {
10791082
'allocator': ALLOCATOR_FOR_CONFIG,
@@ -1772,6 +1775,7 @@ def test_init_set_config(self):
17721775
self.check_all_configs("test_init_set_config", config,
17731776
api=API_ISOLATED)
17741777

1778+
@unittest.skipIf(support.check_bolt_optimized, "segfaults on BOLT instrumented binaries")
17751779
def test_initconfig_api(self):
17761780
preconfig = {
17771781
'configure_locale': True,
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Disable ``test_embed`` test cases that segfault on BOLT instrument binaries.
2+
The tests are only disabled when BOLT is enabled.

0 commit comments

Comments
 (0)