Skip to content
Snippets Groups Projects
Commit 16195639 authored by Yuya Nishihara's avatar Yuya Nishihara
Browse files

tests: disable test of buffer overflow in parsers.c if --pure

It fails with AttributeError and there's no benefit to make it runnable
with pure Python code.
parent f8aead51
No related branches found
No related tags found
No related merge requests found
......@@ -376,3 +376,7 @@
@check("py3k", "running with Python 3.x")
def has_py3k():
return 3 == sys.version_info[0]
@check("pure", "running with pure Python code")
def has_pure():
return os.environ.get("HGTEST_RUN_TESTS_PURE") == "--pure"
......@@ -62,6 +62,8 @@
Test corrupted p1/p2 fields that could cause SEGV at parsers.c:
#if no-pure
$ mkdir invalidparent
$ cd invalidparent
......@@ -118,3 +120,5 @@
find_deepest: parent out of range
$ cd ..
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment