From a267a4b31516a2347ec2c8413e3f59dcdbd1363a Mon Sep 17 00:00:00 2001 From: Yonit Halperin Date: Wed, 2 May 2012 13:39:04 +0300 Subject: server/tests: add SLEEP command to test_display_base --- server/tests/test_display_base.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'server/tests/test_display_base.c') diff --git a/server/tests/test_display_base.c b/server/tests/test_display_base.c index f4127512..1c293f4c 100644 --- a/server/tests/test_display_base.c +++ b/server/tests/test_display_base.c @@ -498,6 +498,10 @@ static void produce_command(void) command->cb(command); } switch (command->command) { + case SLEEP: + printf("sleep %u seconds\n", command->sleep.secs); + sleep(command->sleep.secs); + break; case PATH_PROGRESS: path_progress(&path); break; -- cgit