forked from AuroraMiddleware/gtk
tests: Fix logic to detect argument length
This commit is contained in:
parent
eacf725778
commit
78582dd5e9
@ -32,7 +32,7 @@ main(int argc, char **argv)
|
|||||||
return 1;
|
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]);
|
g_printerr ("Usage: %s [OPTIONS] NODE-FILE PNG-FILE\n", argv[0]);
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user