X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6ee7e9c2e455536ab817ae0136acfbb53822eecd..5b3677b425b9cc6949c1573d59ac772540cbf4b2:/testsuite/surf/trace_usage.c diff --git a/testsuite/surf/trace_usage.c b/testsuite/surf/trace_usage.c index 897fe6c05c..d56c0d755d 100644 --- a/testsuite/surf/trace_usage.c +++ b/testsuite/surf/trace_usage.c @@ -1,21 +1,24 @@ /* A few tests for the trace library */ -/* Copyright (c) 2004, 2005, 2006, 2009, 2010. The SimGrid Team. +/* Copyright (c) 2004-2006, 2009-2014. 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. */ + #ifdef __BORLANDC__ #pragma hdrstop #endif -#include -#include -#include #include "surf/trace_mgr.h" #include "surf/surf.h" #include "xbt/log.h" + +#include +#include +#include + XBT_LOG_NEW_DEFAULT_CATEGORY(surf_test, "Messages specific for surf example"); @@ -23,8 +26,8 @@ void test(void); void test(void) { tmgr_history_t history = tmgr_history_new(); - tmgr_trace_t trace_A = tmgr_trace_new("trace_A.txt"); - tmgr_trace_t trace_B = tmgr_trace_new("trace_B.txt"); + tmgr_trace_t trace_A = tmgr_trace_new_from_file("trace_A.txt"); + tmgr_trace_t trace_B = tmgr_trace_new_from_file("trace_B.txt"); double next_event_date = -1.0; double value = -1.0; char *resource = NULL;