X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/09c8124a61c40287d7f4e0690eb723808491ebc1..6760cb07d6b57be16928d95339d71e57c4e24f36:/teshsuite/gras/small_sleep/small_sleep.c diff --git a/teshsuite/gras/small_sleep/small_sleep.c b/teshsuite/gras/small_sleep/small_sleep.c index e123cdd448..6a44331bca 100644 --- a/teshsuite/gras/small_sleep/small_sleep.c +++ b/teshsuite/gras/small_sleep/small_sleep.c @@ -2,8 +2,8 @@ /* small_sleep.c -- check what happens when the processes do sleeps very shortly*/ -/* Copyright (c) 2007 Martin Quinson. */ -/* All rights reserved. */ +/* Copyright (c) 2008, 2009, 2010. The SimGrid Team. + * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -11,25 +11,24 @@ #include "gras.h" -XBT_LOG_NEW_DEFAULT_CATEGORY(test,"Small sleep test"); +XBT_LOG_NEW_DEFAULT_CATEGORY(test, "Small sleep test"); -int function (int argc,char *argv[]); +int function(int argc, char *argv[]); -int function (int argc,char *argv[]) { - gras_init(&argc,argv); +int function(int argc, char *argv[]) +{ + gras_init(&argc, argv); gras_msg_handleall(100); - INFO0("Let's go -5"); + INFO0("Let's go 1E-5"); gras_msg_handleall(1E-5); - INFO0("Let's go -10"); + INFO0("Let's go 1E-10"); gras_msg_handleall(1E-10); - INFO0("Let's go -15"); + INFO0("Let's go 1E-15"); gras_msg_handleall(1E-15); - INFO0("Let's go -20"); + INFO0("Let's go 1E-20"); gras_msg_handleall(1E-20); INFO0("done"); gras_exit(); return 0; -} - - +}