aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar Brendan Taylor <whateley@gmail.com>2011-02-14 23:32:34 -0700
committerGravatar Brendan Taylor <whateley@gmail.com>2011-02-14 23:32:34 -0700
commitf74ca0f7eac029ed45a3d7c2b58947c85ecec380 (patch)
tree9809f6f918ee4b1e6209236b95f67461469ad73d /tests
parent90dd4c0ad5e7585b6226a4c591a7783edd6c5f66 (diff)
parentf25d19c0fa10451e17d577279d97afe4ba598674 (diff)
Merge commit 'f25d19c0' into experimental
Diffstat (limited to 'tests')
-rw-r--r--tests/test-command.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test-command.c b/tests/test-command.c
index d07bf79..6d3d81e 100644
--- a/tests/test-command.c
+++ b/tests/test-command.c
@@ -297,6 +297,12 @@ test_last_result (void) {
g_string_free(result, TRUE);
}
+void
+test_no_such_command (void) {
+ parse_cmd_line("no-such-command", NULL);
+ /* if we didn't crash then we're ok! */
+}
+
int
main (int argc, char *argv[]) {
/* set up tests */
@@ -315,6 +321,8 @@ main (int argc, char *argv[]) {
g_test_add_func("/test-command/last-result", test_last_result);
+ g_test_add_func("/test-command/no-such-command", test_no_such_command);
+
/* set up uzbl */
initialize(argc, argv);