summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test-send-xmessage.c7
-rw-r--r--test/test-watch-xmessages.c6
2 files changed, 7 insertions, 6 deletions
diff --git a/test/test-send-xmessage.c b/test/test-send-xmessage.c
index d1c0a6f..8d7166f 100644
--- a/test/test-send-xmessage.c
+++ b/test/test-send-xmessage.c
@@ -34,9 +34,9 @@ main (int argc, char **argv)
Display *xdisplay;
SnDisplay *display;
- if (argc != 3)
+ if (argc != 4)
{
- fprintf (stderr, "Must specify message type and message content as first and second args\n");
+ fprintf (stderr, "Must specify message type, message begin type, and message content as first, second, and third args\n");
return 1;
}
@@ -58,7 +58,8 @@ main (int argc, char **argv)
sn_internal_broadcast_xmessage (display, DefaultScreen (xdisplay),
argv[1],
- argv[2]);
+ argv[2],
+ argv[3]);
return 0;
}
diff --git a/test/test-watch-xmessages.c b/test/test-watch-xmessages.c
index 75c55b6..86ed29e 100644
--- a/test/test-watch-xmessages.c
+++ b/test/test-watch-xmessages.c
@@ -73,9 +73,9 @@ main (int argc, char **argv)
Display *xdisplay;
SnDisplay *display;
- if (argc != 2)
+ if (argc != 3)
{
- fprintf (stderr, "argument must be type of events to watch\n");
+ fprintf (stderr, "arguments must be type and begin type of events to watch\n");
return 1;
}
@@ -101,7 +101,7 @@ main (int argc, char **argv)
error_trap_pop);
sn_internal_add_xmessage_func (display, DefaultScreen (xdisplay),
- argv[1],
+ argv[1], argv[2],
message_func,
NULL, NULL);