Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Reflect recent size change in output
[simgrid.git] / testsuite / xbt / config_usage.c
index 05a605f..793afd2 100644 (file)
@@ -48,12 +48,12 @@ int test5()
   return 1;
 }
  
-int main() {
+int main(int argc, char **argv) {
   gras_error_t errcode;
   gras_cfg_t *set;
   int ival;
   
-  gras_log_control_set("config.thresh=debug root.thresh=info");
+  gras_init_defaultlog(&argc,argv,"config.thresh=debug root.thresh=info");
 
   fprintf(stderr,"==== Alloc and free a config set.\n");
   set=make_set();
@@ -87,6 +87,7 @@ int main() {
         "Count: 3; Options:\\nmquinson\\necaron\\nfsuter");
   test5();
 
+  gras_exit();
   return 0;
 }