mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 16:10:41 -05:00
tests: fix argument parsing of test-texture-quality
This test did not open redhand.png as argc/argv should be handled normally (argv[0] being the name of the exectutable). Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>
This commit is contained in:
parent
e4180b2838
commit
4f06d035a2
@ -63,11 +63,11 @@ test_texture_quality_main (int argc, char *argv[])
|
||||
"button-press-event", G_CALLBACK (clutter_main_quit),
|
||||
NULL);
|
||||
|
||||
if (argc < 1)
|
||||
if (argc < 2)
|
||||
g_print ("Hint: the redhand.png isn't a good test image for this test.\n"
|
||||
"This test can take any image file as an argument\n");
|
||||
|
||||
file = (argc > 0)
|
||||
file = (argc > 1)
|
||||
? g_strdup (argv[1])
|
||||
: g_build_filename (TESTS_DATADIR, "redhand.png", NULL);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user