Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
d6f45b23
Commit
d6f45b23
authored
Dec 30, 2018
by
Gregory P. Smith
Committed by
GitHub
Dec 30, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typos in test_faulthandler skipIfs for ubsan. (GH-11386)
parent
6f9bc72c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Lib/test/test_faulthandler.py
Lib/test/test_faulthandler.py
+4
-4
No files found.
Lib/test/test_faulthandler.py
View file @
d6f45b23
...
...
@@ -23,11 +23,11 @@ MS_WINDOWS = (os.name == 'nt')
_cflags
=
sysconfig
.
get_config_var
(
'CFLAGS'
)
or
''
_config_args
=
sysconfig
.
get_config_var
(
'CONFIG_ARGS'
)
or
''
UB_SANITIZER
=
(
'-fsanitize
r
=undefined'
in
_cflags
or
'-fsanitize=undefined'
in
_cflags
or
'--with-undefined-behavior-sanitizer'
in
_config_args
)
MEMORY_SANITIZER
=
(
'-fsanitize
r
=memory'
in
_cflags
or
'-fsanitize=memory'
in
_cflags
or
'--with-memory-sanitizer'
in
_config_args
)
...
...
@@ -265,7 +265,7 @@ class FaultHandlerTests(unittest.TestCase):
'Segmentation fault'
)
@
unittest
.
skipIf
(
UB_SANITIZER
or
MEMORY_SANITIZER
,
"sanizer builds change crashing process output."
)
"sani
ti
zer builds change crashing process output."
)
@
skip_segfault_on_android
def
test_enable_file
(
self
):
with
temporary_filename
()
as
filename
:
...
...
@@ -282,7 +282,7 @@ class FaultHandlerTests(unittest.TestCase):
@
unittest
.
skipIf
(
sys
.
platform
==
"win32"
,
"subprocess doesn't support pass_fds on Windows"
)
@
unittest
.
skipIf
(
UB_SANITIZER
or
MEMORY_SANITIZER
,
"sanizer builds change crashing process output."
)
"sani
ti
zer builds change crashing process output."
)
@
skip_segfault_on_android
def
test_enable_fd
(
self
):
with
tempfile
.
TemporaryFile
(
'wb+'
)
as
fp
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment