##// END OF EJS Templates
tests: finally fix up test-fuzz-targets.t...
tests: finally fix up test-fuzz-targets.t It's been failing on my workstation for a while, since I have a new enough LLVM that I had the fuzzer goo, but not so new that I actually had FuzzedDataProvider. This is a better solution all around in my opinion. I _believe_ this should let us run these tests on most systems, even those using GCC instead of clang. That said, my one attempt to test this on my macOS laptop failed miserably, and I don't feel like doing more work on this right now. Differential Revision: https://phab.mercurial-scm.org/D7566

File last commit:

r43346:2372284d default
r44267:19da643d default
Show More
crashgetbundler.py
12 lines | 287 B | text/x-python | PythonLexer
/ tests / crashgetbundler.py
Pierre-Yves David
wireproto: properly report server Abort during 'getbundle'...
r30914 from __future__ import absolute_import
from mercurial.i18n import _
Augie Fackler
formatting: blacken the codebase...
r43346 from mercurial import changegroup, error, extensions
Pierre-Yves David
wireproto: properly report server Abort during 'getbundle'...
r30914
def abort(orig, *args, **kwargs):
raise error.Abort(_('this is an exercise'))
Augie Fackler
formatting: blacken the codebase...
r43346
Pierre-Yves David
wireproto: properly report server Abort during 'getbundle'...
r30914 def uisetup(ui):
extensions.wrapfunction(changegroup, 'getbundler', abort)