tests: Fix logic to detect argument length

This commit is contained in:
Benjamin Otte 2016-12-25 06:19:34 +01:00
parent eacf725778
commit 78582dd5e9

View File

@ -32,7 +32,7 @@ main(int argc, char **argv)
return 1;
}
if (argc != 3 && (argc != 2 && (dump_variant || benchmark)))
if (!(argc == 3 || (argc == 2 && (dump_variant || benchmark))))
{
g_printerr ("Usage: %s [OPTIONS] NODE-FILE PNG-FILE\n", argv[0]);
return 1;