summaryrefslogtreecommitdiff
path: root/tests/testfilechooser.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testfilechooser.c')
-rw-r--r--tests/testfilechooser.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/testfilechooser.c b/tests/testfilechooser.c
index 7959411ed9..90cacfb868 100644
--- a/tests/testfilechooser.c
+++ b/tests/testfilechooser.c
@@ -566,6 +566,11 @@ main (int argc, char **argv)
action = GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER;
else if (! strcmp ("create_folder", action_arg))
action = GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER;
+ else
+ {
+ g_print ("--action must be one of \"open\", \"save\", \"select_folder\", \"create_folder\"\n");
+ return 1;
+ }
g_free (action_arg);
}