Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
be more friendly in tests with VPATH builds
[simgrid.git] / teshsuite / gras / datadesc / datadesc_usage.c
index 7c326bc..5678e6d 100644 (file)
@@ -457,19 +457,13 @@ static void test_dynar_ref(gras_socket_t sock, int direction)
 
 /**** PBIO *****/
 GRAS_DEFINE_TYPE(s_pbio, struct s_pbio {        /* structure presented in the IEEE article */
-                 int Cnstatv;
-                 double Cstatev[12];
+                 int Cnstatv; double Cstatev[12];
                  int Cnprops;
-                 double Cprops[110];
-                 int Cndi[4];
-                 int Cnshr;
-                 int Cnpt; double Cdtime; double Ctime[2]; int Cntens;
-                 double Cdfgrd0[373][3];
-                 double Cdfgrd1[3][3]; double Cstress[106];
-                 double Cddsdde[106][106];
-                 };
-
-  )
+                 double Cprops[110]; int Cndi[4]; int Cnshr; int Cnpt;
+                 double Cdtime;
+                 double Ctime[2];
+                 int Cntens; double Cdfgrd0[373][3]; double Cdfgrd1[3][3];
+                 double Cstress[106]; double Cddsdde[106][106];};)
 
      typedef struct s_pbio pbio_t;
 
@@ -547,9 +541,10 @@ GRAS_DEFINE_TYPE(s_pbio, struct s_pbio {        /* structure presented in the IE
 }
 
 GRAS_DEFINE_TYPE(s_clause, struct s_clause {
-                 int num_lits;
-                 int *literals GRAS_ANNOTE(size, num_lits);     /* Tells GRAS where to find the size */
-                 };)
+                 int num_lits; int *literals GRAS_ANNOTE(size, num_lits);       /* Tells GRAS where to find the size */
+                 };
+
+  )
 
      typedef struct s_clause Clause;
 
@@ -742,11 +737,11 @@ int main(int argc, char *argv[])
   }
 
   if (direction == WRITE) {
-    INFO1("Write to file %s", filename);
+    INFO1("Write to file %s", strrchr(filename,'/')?strrchr(filename,'/')+1:filename);
     sock = gras_socket_client_from_file(filename);
   }
   if (direction == READ) {
-    INFO1("Read from file %s", filename);
+    INFO1("Read from file %s", strrchr(filename,'/')?strrchr(filename,'/')+1:filename);
     sock = gras_socket_server_from_file(filename);
   }
   if (direction == COPY) {