[Pvfs2-cvs] commit by slang in pvfs2/test/correctness/pts: pts.c test-concurrent-meta.c test-encode-basic.c test-finalized.c test-invalid-files.c test-misc.c test-mix.c test-null-params.c test-protos.h test-romio-noncontig-pattern2.c test-uninitialized.c

CVS commit program cvs at parl.clemson.edu
Wed Oct 11 16:35:33 EDT 2006


Update of /projects/cvsroot/pvfs2/test/correctness/pts
In directory parlweb1:/tmp/cvs-serv2378/test/correctness/pts

Modified Files:
	pts.c test-concurrent-meta.c test-encode-basic.c 
	test-finalized.c test-invalid-files.c test-misc.c test-mix.c 
	test-null-params.c test-protos.h 
	test-romio-noncontig-pattern2.c test-uninitialized.c 
Log Message:
fix c++ style comments in pts


Index: pts.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/correctness/pts/pts.c,v
diff -p -u -r1.14 -r1.15
--- pts.c	3 Oct 2004 19:00:55 -0000	1.14
+++ pts.c	11 Oct 2006 20:35:33 -0000	1.15
@@ -68,7 +68,7 @@ int main(int argc, char **argv) {
     exit(1);
   }
   
-  //  printf("%d: here\n", myid);
+  /*  printf("%d: here\n", myid); */
   pts_config.myid = myid;
   pts_config.numprocs = numprocs;
   rc = sync_config(&pts_config);
@@ -85,7 +85,7 @@ int main(int argc, char **argv) {
   PINT_time_mark(&marker2);
   
   fprintf(stderr, "%d: DONE RUNNING TESTS!\n", myid);
-  //   MPI_Barrier(MPI_COMM_WORLD);
+  /*   MPI_Barrier(MPI_COMM_WORLD); */
   if(numprocs == 1)
   {
     PINT_time_diff(marker1, marker2, &wtime, &utime, &stime);
@@ -123,7 +123,7 @@ int sync_config(config *myconfig) {
     } else {
       /* all non proc 0 nodes gobble up some space */
       rawparams = malloc(4096);
-      bzero(rawparams, 4096);
+      memset(rawparams, 0, 4096);
     }
 
     /* bcast send out the new pindex */
@@ -206,7 +206,7 @@ int run_tests(config *myconfig) {
       fprintf(stderr, "\n\n");
     }
     index++;
-    bzero(buf, 4096);
+    memset(buf, 0, 4096);
   }
   free(buf);
   
@@ -313,9 +313,9 @@ int parse_configfile(config *myconfig) {
       if (strindex != NULL) {
 	*strindex = '\0';
 	pindex = lookup_test(myconfig, linebuf);
-	//	printf("pindex %d\n", pindex);
+	/*	printf("pindex %d\n", pindex); */
 	strindex++;
-	rawparams = strdup(strindex);
+	rawparams = (char *)strdup(strindex);
 	
 	if (pindex < 0) {
 	  fprintf(stderr, "parse error, test '%s' not found internally\n", linebuf);

Index: test-concurrent-meta.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/correctness/pts/test-concurrent-meta.c,v
diff -p -u -r1.18 -r1.19
--- test-concurrent-meta.c	28 Jul 2004 14:33:00 -0000	1.18
+++ test-concurrent-meta.c	11 Oct 2006 20:35:33 -0000	1.19
@@ -270,7 +270,7 @@ int test_concurrent_meta(MPI_Comm * comm
 		    ret = list_dir("/test_dir",fs_id);
 		    if(ret >= 0){
 			PVFS_perror("list_dir",ret);
-			//return ret;
+			/* return ret; */
 		    }
 		}
 		return 0;
@@ -282,7 +282,7 @@ int test_concurrent_meta(MPI_Comm * comm
 		    if(ret < 0)
 		    {
 			PVFS_perror("getattr\n",ret);
-			//return ret;
+			/* return ret; */
 		    }
 		}
 		return 0;
@@ -294,7 +294,7 @@ int test_concurrent_meta(MPI_Comm * comm
 		    if(ret < 0)
 		    {
 			PVFS_perror("lookup\n",ret);
-			//return ret;
+			/* return ret; */
 		    }
 		}
 		return 0;
@@ -306,7 +306,7 @@ int test_concurrent_meta(MPI_Comm * comm
 		    if(ret < 0)
 		    {
 			PVFS_perror("lookup\n",ret);
-			//return ret;
+			/* return ret; */
 		    }
 		}
 		return 0;

Index: test-encode-basic.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/correctness/pts/test-encode-basic.c,v
diff -p -u -r1.5 -r1.6
--- test-encode-basic.c	7 Jul 2005 15:35:47 -0000	1.5
+++ test-encode-basic.c	11 Oct 2006 20:35:33 -0000	1.6
@@ -84,7 +84,7 @@ static int test_encode(void){
    r_dec = (PINT_Request*)malloc(pack_size);
    memcpy(r_dec, r_enc, pack_size);
    free(r_enc);
-   // free(r);
+   /*  free(r); */
    ret = PINT_request_decode(r_dec);
    if(ret < 0)
    {

Index: test-finalized.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/correctness/pts/test-finalized.c,v
diff -p -u -r1.20 -r1.21
--- test-finalized.c	28 Jul 2004 14:33:00 -0000	1.20
+++ test-finalized.c	11 Oct 2006 20:35:33 -0000	1.21
@@ -309,7 +309,7 @@ static int test_remove(void)
 static int test_rename(void)
 {
 
-//      return PVFS_sys_rename(old_name, old_parent_refn, new_name, new_parent_refn, credentials);
+/*      return PVFS_sys_rename(old_name, old_parent_refn, new_name, new_parent_refn, credentials); */
     return -2;
 }
 

Index: test-invalid-files.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/correctness/pts/test-invalid-files.c,v
diff -p -u -r1.21 -r1.22
--- test-invalid-files.c	28 Jul 2004 14:33:00 -0000	1.21
+++ test-invalid-files.c	11 Oct 2006 20:35:33 -0000	1.22
@@ -360,7 +360,7 @@ static int test_remove(int testcase)
 static int test_rename(void)
 {
 
-//      return PVFS_sys_rename(old_name, old_parent_refn, new_name, new_parent_refn, credentials);
+/*      return PVFS_sys_rename(old_name, old_parent_refn, new_name, new_parent_refn, credentials); */
     return -2;
 }
 
@@ -527,7 +527,7 @@ static int init_file(void)
     }
     fs_id = pvfs_helper.fs_id;
 
-    //get root
+    /* get root */
     ret = PVFS_sys_lookup(fs_id, "/", &credentials,
                           &resp_look, PVFS2_LOOKUP_LINK_NO_FOLLOW);
     if (ret < 0)

Index: test-misc.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/correctness/pts/test-misc.c,v
diff -p -u -r1.23 -r1.24
--- test-misc.c	28 Jul 2004 14:33:00 -0000	1.23
+++ test-misc.c	11 Oct 2006 20:35:33 -0000	1.24
@@ -419,7 +419,7 @@ static int test_allcat(int testcase)
     }
     fs_id = pvfs_helper.fs_id;
 
-    //get file
+    /* get file */
     ret = PVFS_sys_lookup(fs_id, filename, &credentials,
                           &resp_look, PVFS2_LOOKUP_LINK_NO_FOLLOW);
     if (ret < 0)
@@ -435,18 +435,18 @@ static int test_allcat(int testcase)
     {
     case 0:
 	size = 5;
-	//ret =  PVFS_sys_allocate(resp_look.ref, size );
+	/* ret =  PVFS_sys_allocate(resp_look.ref, size ); */
 	break;
     case 1:
 	size = 100000;
-	//ret =  PVFS_sys_allocate(resp_look.ref, size );
+	/* ret =  PVFS_sys_allocate(resp_look.ref, size ); */
 	break;
     case 2:
 	size = 1000000;
-	//ret =  PVFS_sys_allocate(resp_look.ref, size );
+	/* ret =  PVFS_sys_allocate(resp_look.ref, size ); */
 	break;
     }
-    //get file
+    /* get file */
     ret = PVFS_sys_lookup(fs_id, filename, &credentials,
                           &resp_look, PVFS2_LOOKUP_LINK_NO_FOLLOW);
     if (ret < 0)
@@ -489,7 +489,7 @@ static int test_truncat(int testcase)
     }
     fs_id = pvfs_helper.fs_id;
 
-    //get file
+    /* get file */
     ret = PVFS_sys_lookup(fs_id, filename, &credentials,
                           &resp_look, PVFS2_LOOKUP_LINK_NO_FOLLOW);
     if (ret < 0)
@@ -518,7 +518,7 @@ static int test_truncat(int testcase)
 	break;
     }
 
-    //get file
+    /* get file */
     ret = PVFS_sys_lookup(fs_id, filename, &credentials,
                           &resp_look, PVFS2_LOOKUP_LINK_NO_FOLLOW);
     if (ret < 0)
@@ -634,7 +634,7 @@ static int test_write_beyond(void){
 	return ret;
     io_buffer = malloc(sizeof(char)*(size_t)resp.attr.size+100);
 
-    //req_io.size = resp_io.size + 100;
+    /* req_io.size = resp_io.size + 100; */
     oldsize = resp.attr.size +100;
     for(i = 0; i < oldsize; i++)
     {
@@ -680,7 +680,7 @@ static int test_files_as_dirs(int testca
     switch(testcase)
     {
     case 0:
-	//get root
+	/* get root */
 	ret = PVFS_sys_lookup(fs_id, "/", &credentials,
                               &resp_look, PVFS2_LOOKUP_LINK_NO_FOLLOW);
 	if (ret < 0)
@@ -691,7 +691,7 @@ static int test_files_as_dirs(int testca
 
 	ret = PVFS_sys_create("foo", resp_look.ref, attr, &credentials,
                            NULL, &resp_create);
-	//get root
+	/* get root */
 	ret = PVFS_sys_lookup(fs_id, "/foo", &credentials,
                               &resp_look, PVFS2_LOOKUP_LINK_NO_FOLLOW);
 	if (ret < 0)
@@ -704,7 +704,7 @@ static int test_files_as_dirs(int testca
                            NULL, &resp_create);
 	break;
     case 1:
-	//Need to add some more interesting cases
+	/* Need to add some more interesting cases */
 	break; 
     }
 
@@ -910,7 +910,7 @@ static int init_files(void)
     }
     fs_id = pvfs_helper.fs_id;
 
-    //get root
+    /* get root */
     ret = PVFS_sys_lookup(fs_id, "/", &credentials,
                           &resp_look, PVFS2_LOOKUP_LINK_NO_FOLLOW);
     if (ret < 0)
@@ -947,7 +947,7 @@ static int init_files(void)
     }
     fs_id = pvfs_helper.fs_id;
 
-    //get root
+    /* get root */
     ret = PVFS_sys_lookup(fs_id, "/", &credentials,
                           &resp_look, PVFS2_LOOKUP_LINK_NO_FOLLOW);
     if (ret < 0)

Index: test-mix.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/correctness/pts/test-mix.c,v
diff -p -u -r1.9 -r1.10
--- test-mix.c	14 May 2006 16:01:14 -0000	1.9
+++ test-mix.c	11 Oct 2006 20:35:33 -0000	1.10
@@ -92,8 +92,8 @@ static int test_mx(void){
    PINT_dump_packed_request(r_packed);
                                                                                                                                                        
    /* skipping logical bytes */
-   // PINT_REQUEST_STATE_SET_TARGET(rs1,(3 * 1024) + 512);
-   // PINT_REQUEST_STATE_SET_FINAL(rs1,(6 * 1024) + 512);
+   /*  PINT_REQUEST_STATE_SET_TARGET(rs1,(3 * 1024) + 512); */
+   /* PINT_REQUEST_STATE_SET_FINAL(rs1,(6 * 1024) + 512); */
                                                                                                                                                        
                                                                                                                                                        
    printf("\n************************************\n");

Index: test-null-params.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/correctness/pts/test-null-params.c,v
diff -p -u -r1.39 -r1.40
--- test-null-params.c	28 Jul 2004 14:33:00 -0000	1.39
+++ test-null-params.c	11 Oct 2006 20:35:33 -0000	1.40
@@ -373,7 +373,7 @@ static int test_remove(int nullCase)
 static int test_rename(void)
 {
 
-//      return PVFS_sys_rename(old_name, old_parent_refn, new_name, new_parent_refn, credentials);
+/*      return PVFS_sys_rename(old_name, old_parent_refn, new_name, new_parent_refn, credentials); */
     return -2;
 }
 
@@ -540,7 +540,7 @@ static int init_file(void)
     }
     fs_id = pvfs_helper.fs_id;
 
-    //get root
+    /* get root */
     ret = PVFS_sys_lookup(fs_id, "/", &credentials,
                           &resp_look, PVFS2_LOOKUP_LINK_NO_FOLLOW);
     if (ret < 0)

Index: test-protos.h
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/correctness/pts/test-protos.h,v
diff -p -u -r1.21 -r1.22
--- test-protos.h	18 Mar 2004 20:59:03 -0000	1.21
+++ test-protos.h	11 Oct 2006 20:35:33 -0000	1.22
@@ -4,6 +4,7 @@
 #include <stdio.h>
 #include <pts.h>
 #include <generic.h>
+#include <string.h>
 
 /* include all test specific header files */
 #include "test-create.h"

Index: test-romio-noncontig-pattern2.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/correctness/pts/test-romio-noncontig-pattern2.c,v
diff -p -u -r1.8 -r1.9
--- test-romio-noncontig-pattern2.c	10 Nov 2005 01:27:20 -0000	1.8
+++ test-romio-noncontig-pattern2.c	11 Oct 2006 20:35:33 -0000	1.9
@@ -98,8 +98,8 @@ static int test_romio_noncontig2(void){
                                                                                                                                                        
                                                                                                                                                        
    /* Turn on debugging */
-   // gossip_enable_stderr();
-   // gossip_set_debug_mask(1,REQUEST_DEBUG);
+   /* gossip_enable_stderr(); */
+   /* gossip_set_debug_mask(1,REQUEST_DEBUG); */
                                                                                                                                                        
     j = 0;
    do

Index: test-uninitialized.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/correctness/pts/test-uninitialized.c,v
diff -p -u -r1.19 -r1.20
--- test-uninitialized.c	28 Jul 2004 14:33:00 -0000	1.19
+++ test-uninitialized.c	11 Oct 2006 20:35:33 -0000	1.20
@@ -262,7 +262,7 @@ static int test_remove(void)
 static int test_rename(void)
 {
 
-//      return PVFS_sys_rename(old_name, old_parent_refn, new_name, new_parent_refn, credentials);
+/*      return PVFS_sys_rename(old_name, old_parent_refn, new_name, new_parent_refn, credentials); */
     return -2;
 }
 



More information about the Pvfs2-cvs mailing list