qutebrowser/tests/unit/misc
Florian Bruhin db1382f75c elf: Ignore garbage data
With qt5-webengine 5.15.9-3 on Arch Linux, there only was a rebuild:
70aa541b4f

but somehow, we now have some kind of garbage data in the .data section:

    ...
    \x00QtWebEngine/5.15.9 Chrome/87.0.4xternalclearkey
    \x00ernalclearkey.diy.differentguid
    \x00Portable Documen/usr/src/debug/qtwebengine/src/core/net/proxying_restricted_cookie_manager_qt.cpp
    \x00
    ...

the *actual* string table only seems to follow much later:

    ...
    \x00display
    \x00\x00dispatchCallbackOnIOThread
    \x00/Cache
    \x00DownloadInterruptReason
    \x00General network failure
    \x00The server has gone down
    \x00General server failure
    \x00Unexpected server response
    \x00Download canceled by the user
    \x00shutdownOnUIThread
    \x00qrc://
    \x00RequestQuotaPermission
    \x00\x00\x00\x00/usr/src/debug/qtwebengine/src/core/quota_permission_context_qt.cpp
    \x00\x00\x00\x00\x00QtWebEngine/5.15.9 Chrome/87.0.4280.144
    \x00 - %04d-%02d-%02dT%0"
    ...

So let's include the NUL bytes in our regex, to make sure we get the full
variant, not the garbage.

(cherry picked from commit 511df8af21ed18a65c49881175814efa72329754)
2022-05-19 08:56:16 +02:00
..
userscripts Fix qute-lastpass tests 2022-04-04 17:30:41 +02:00
test_autoupdate.py Qtbot methods changed to snake case,snake case check added 2021-02-26 22:07:08 +01:00
test_checkpyver.py Switch to Python 3.7 subprocess API 2022-04-04 16:58:31 +02:00
test_cmdhistory.py doc: Switch URLs to https 2021-01-26 15:19:01 +01:00
test_crashdialog.py doc: Switch URLs to https 2021-01-26 15:19:01 +01:00
test_earlyinit.py doc: Switch URLs to https 2021-01-26 15:19:01 +01:00
test_editor.py Merge remote-tracking branch 'origin/pr/7010' 2022-03-31 13:26:31 +02:00
test_elf.py elf: Ignore garbage data 2022-05-19 08:56:16 +02:00
test_guiprocess.py Pre-resolve guiprocess paths (work around Qt's CVE-2022-25255) 2022-03-30 17:52:44 +02:00
test_ipc.py flatpak: Try getting ID from /.flatpak_info 2021-03-31 13:10:09 +02:00
test_keyhints.py pylint: Enable docparams checker 2021-12-03 13:36:20 +01:00
test_lineparser.py Get rid of IOError 2021-01-26 17:49:39 +01:00
test_miscwidgets.py Use flake8-pytest-style 2022-01-04 10:30:24 +01:00
test_msgbox.py Qtbot methods changed to snake case,snake case check added 2021-02-26 22:07:08 +01:00
test_objects.py doc: Switch URLs to https 2021-01-26 15:19:01 +01:00
test_pastebin.py Qtbot methods changed to snake case,snake case check added 2021-02-26 22:07:08 +01:00
test_sessions.py doc: Switch URLs to https 2021-01-26 15:19:01 +01:00
test_split.py doc: Switch URLs to https 2021-01-26 15:19:01 +01:00
test_split_hypothesis.py doc: Switch URLs to https 2021-01-26 15:19:01 +01:00
test_sql.py Restore the sql fixture to close DBs after testing 2021-07-09 01:10:36 -03:00
test_throttle.py Rename utils.py to testutils.py 2021-02-25 21:28:56 +01:00
test_utilcmds.py doc: Switch URLs to https 2021-01-26 15:19:01 +01:00