]> git.ipfire.org Git - thirdparty/git.git/commit
tests: add a helper to stress test argument quoting
authorGarima Singh <garima.singh@microsoft.com>
Wed, 18 Sep 2019 20:03:59 +0000 (16:03 -0400)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Thu, 5 Dec 2019 14:36:52 +0000 (15:36 +0100)
commitad1559252945179e28fba7d693494051352810c5
tree162f44f14f5e024f0f47a87c4751bc6727254575
parent6d8684161ee9c03bed5cb69ae76dfdddb85a0003
tests: add a helper to stress test argument quoting

On Windows, we have to do all the command-line argument quoting
ourselves. Worse: we have to have two versions of said quoting, one for
MSYS2 programs (which have their own dequoting rules) and the rest.

We care mostly about the rest, and to make sure that that works, let's
have a stress test that comes up with all kinds of awkward arguments,
verifying that a spawned sub-process receives those unharmed.

Signed-off-by: Garima Singh <garima.singh@microsoft.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
t/helper/test-run-command.c