diff options
| author | Assam Boudjelthia <assam.boudjelthia@qt.io> | 2023-12-04 16:51:29 +0200 |
|---|---|---|
| committer | Assam Boudjelthia <assam.boudjelthia@qt.io> | 2023-12-05 22:03:55 +0200 |
| commit | 82a40f084b8ddb5f7f11d49f3296df9dba359301 (patch) | |
| tree | 0fd5ffaa42cc6157c2e517b3c780294887090645 /src/corelib/tools/qsharedpointer.cpp | |
| parent | 66a5f9fdd40485a4e64d447f84046698b7cacae3 (diff) | |
AndroidTestRunner: fix args with quotes and spaces
First, replace double quote characters with 3 escaped double quotes
to allow QProcess::splitCommand() to treat it as an actual quote
character that's part of the tag.
Then, escape single quote characters so they don't interfere with
the shell command and also to be treated as part of the argument.
Lastly, surround the args with escaped double quote so that args
with spaces are also treated as one.
Amends b044323c1656aeeec508afab8457755cc1e8c587.
Example of this:
tst_qkeyevent::modifiers("M","e","t","a") for double quotes
tst_qunicodetools::wordBreakClass(two words) for spaces
tst_QSpinBox::stepSelectAll("don't select all") for single quotes
Task-number: QTQAINFRA-5703
Change-Id: Ie4317e4350bbac619bac41e41f42613f50cf1ad4
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
Diffstat (limited to 'src/corelib/tools/qsharedpointer.cpp')
0 files changed, 0 insertions, 0 deletions
