summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPeter Varga <pvarga@inf.u-szeged.hu>2023-01-18 13:38:00 +0100
committerPeter Varga <pvarga@inf.u-szeged.hu>2023-01-20 09:03:22 +0100
commit614d6639b875f53b21eaabd2d5928b84b59af707 (patch)
treec7d3d01260c74a33645010605abdd8317f139a15 /tests
parent876f11854eddbe95132692b3b0853470563ff54a (diff)
Improve error handling of argument parsing
As a corner case, QCoreApplication::arguments() might be empty. For example, the embedder sets argc=0. It is invalid but doesn't crash or warn. base::CommandLine expects program name to be set and Chromium code might use it. It is not possible to set program name if argv is not passed to QCoreApplication. This change does not handle this corner case but detects it, and warns the user to not expect proper behavior. Pick-to: 6.5 Task-number: QTBUG-110157 Change-Id: Ibf14b11bbf8b8c72d8a1d8419377a25b311b9ebe Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions