Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Test case trying to handle messages for a very short period
[simgrid.git] / teshsuite / gras / small_sleep / small_sleep.c
1 /* $Id: gras.c 3859 2007-07-18 12:29:51Z donassbr $ */
2
3 /* small_sleep.c -- check what happens when the processes do sleeps very shortly*/
4
5 /* Copyright (c) 2007 Martin Quinson.                                       */
6 /* All rights reserved.                                                     */
7
8 /* This program is free software; you can redistribute it and/or modify it
9  * under the terms of the license (GNU LGPL) which comes with this package. */
10
11
12 #include "gras.h"
13
14 XBT_LOG_NEW_DEFAULT_CATEGORY(test,"Small sleep test");
15
16 int function (int argc,char *argv[]);
17
18
19 int function (int argc,char *argv[]) {
20   gras_init(&argc,argv);
21   gras_msg_handleall(100);
22   INFO0("Let's go -5");
23   gras_msg_handleall(1E-5);
24   INFO0("Let's go -10");
25   gras_msg_handleall(1E-10);
26   INFO0("Let's go -15");
27   gras_msg_handleall(1E-15);
28   INFO0("Let's go -20");
29   gras_msg_handleall(1E-20);
30   INFO0("done");
31   gras_exit();
32   return 0;
33
34
35