Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
props dict does not always exists anymore. Check if not NULL before
[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) 2008, 2009, 2010. The SimGrid Team.
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 {
21   gras_init(&argc, argv);
22   gras_msg_handleall(100);
23   XBT_INFO("Let's go 1E-5");
24   gras_msg_handleall(1E-5);
25   XBT_INFO("Let's go 1E-10");
26   gras_msg_handleall(1E-10);
27   XBT_INFO("Let's go 1E-15");
28   gras_msg_handleall(1E-15);
29   XBT_INFO("Let's go 1E-20");
30   gras_msg_handleall(1E-20);
31   XBT_INFO("done");
32   gras_exit();
33   return 0;
34 }