Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
when using doubles, %lg should be used for scanf and %g for printf (which is
[simgrid.git] / testsuite / surf / maxmin_usage.c
index 23c2b16..33f3213 100644 (file)
@@ -11,7 +11,7 @@
 #include <stdio.h>
 #include "surf/maxmin.h"
 
 #include <stdio.h>
 #include "surf/maxmin.h"
 
-#define PRINT_VAR(var) printf(#var " = %Lg\n",lmm_variable_getvalue(var));
+#define PRINT_VAR(var) printf(#var " = %lg\n",lmm_variable_getvalue(var));
 
 /*                               */
 /*        ______                 */
 
 /*                               */
 /*        ______                 */
@@ -112,10 +112,12 @@ void test2(void)
   lmm_system_free(Sys);
 } 
 
   lmm_system_free(Sys);
 } 
 
-
 int main(int argc, char **argv)
 {
 int main(int argc, char **argv)
 {
+  printf("***** Test 1 ***** \n");
   test();
   test();
+  printf("***** Test 2 ***** \n");
   test2();
   test2();
+
   return 0;
 }
   return 0;
 }