Sfoglia il codice sorgente

Run full tests instead of writing a bunch of checkpoints.

(Logical change 1.24)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@68 fd59a12c-fef9-0310-b244-a6a79926bd2f
Steven Dake 21 anni fa
parent
commit
57b0cdd65e
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      test/testckpt.c

+ 4 - 0
test/testckpt.c

@@ -169,6 +169,7 @@ printf ("create1 error is %d\n", error);
 		strlen ("Initial Data #0") + 1);
 printf ("create2 error is %d\n", error);
 	printf ("saCkptSectionCreate result %d (should be 1)\n", error);
+#ifdef cmpout
 for (ckptinv = 0; ckptinv < 500000; ckptinv++) {
 printf ("Writing checkpoint loop %d\n", ckptinv);
 	/*
@@ -184,6 +185,7 @@ if (error != SA_OK) {
 }
 }
 exit (1);
+#endif
 
 	error = saCkptCheckpointUnlink (&checkpointName);
 	printf ("unlink result %d (should be 1)\n", error);
@@ -287,6 +289,7 @@ exit (1);
 	printf (" buffer #2: '%s'\n", readBuffer2);
 
 //sleep (20);
+#ifdef COMPILE_OUT
 for (ckptinv = 0; ckptinv < 2000; ckptinv++) {
 	/*
 	 * Test checkpoint write
@@ -302,6 +305,7 @@ exit (1);
 }
 }
 exit (1);
+#endif
 	error = saCkptCheckpointRead (&checkpointHandle,
 		ReadVectorElements,
 		2,