summaryrefslogtreecommitdiffstats
path: root/src/xml/sax/qxml.h
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2020-09-08 12:10:27 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2020-09-14 09:47:50 +0200
commit6b43b665a8f359f2310851de2e9560091e9726db (patch)
tree768d92311c1d56d4f44ff0b1eba6842f7098a12a /src/xml/sax/qxml.h
parente926e68f50c9140b373a37f4babca601961c39cb (diff)
Make QTRY_IMPL() exit its loop if the test fails
Some tests, particularly the asynchronous ones that depend on the QTRY_*() macros, have call-backs in which a test can fail, but the macro used to test for failure only returns from the call-back, so the test doesn't know to fail. Make sure the QTRY_*() macro gives up if that happens, so that the test function at least gets control back and can notice that it's failed. Even if they don't check, they'll fail sooner, where they might otherwise have been stuck in a loop that would never exit until the watchdog timer shoots the test down (and Coin ends up with a debugger back-trace and no output from later tests). Change-Id: I622a53117de5e97d23dd22e04e5cd20361a54651 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/xml/sax/qxml.h')
0 files changed, 0 insertions, 0 deletions