gtester: fix -Wduplicated-branches

One of the “quick” or “slow” test run modes is always added to the
argument list, making the branching pointless, which, coincidentally,
now causes a warning.

https://bugzilla.gnome.org/show_bug.cgi?id=793399
This commit is contained in:
Ernestas Kulik 2018-02-13 20:57:04 +02:00 committed by Philip Withnall
parent f84ce12989
commit c97922c104

View File

@ -322,10 +322,8 @@ launch_test_binary (const char *binary,
argc++;
if (!subtest_mode_fatal)
argc++;
if (subtest_mode_quick)
argc++;
else
argc++;
/* Either -m=quick or -m=slow is always appended. */
argc++;
if (subtest_mode_perf)
argc++;
if (!subtest_mode_undefined)