X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/82c0c72923e55859ed85f6450937f9b9a55f75f2..d90a41491cfb04188c4469729fa60d01ec0ff693:/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 5079478987..e5fd687af9 100644 --- a/teshsuite/gras/small_sleep/small_sleep.c +++ b/teshsuite/gras/small_sleep/small_sleep.c @@ -1,9 +1,7 @@ -/* $Id: gras.c 3859 2007-07-18 12:29:51Z donassbr $ */ - /* 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 +9,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 1E-5"); + XBT_INFO("Let's go 1E-5"); gras_msg_handleall(1E-5); - INFO0("Let's go 1E-10"); + XBT_INFO("Let's go 1E-10"); gras_msg_handleall(1E-10); - INFO0("Let's go 1E-15"); + XBT_INFO("Let's go 1E-15"); gras_msg_handleall(1E-15); - INFO0("Let's go 1E-20"); + XBT_INFO("Let's go 1E-20"); gras_msg_handleall(1E-20); - INFO0("done"); + XBT_INFO("done"); gras_exit(); return 0; -} - - +}