Просмотр исходного кода

Create section after section is unlinked in test code.

(Logical change 1.164)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@562 fd59a12c-fef9-0310-b244-a6a79926bd2f
Steven Dake 21 лет назад
Родитель
Сommit
46e2bad993
1 измененных файлов с 7 добавлено и 6 удалено
  1. 7 6
      test/testckpt.c

+ 7 - 6
test/testckpt.c

@@ -304,6 +304,13 @@ printf ("Please wait, testing expiry of checkpoint sections.\n");
 	printf ("%s: replacing deleted checkpoint section\n",
 		get_test_output (error, SA_AIS_OK));
 
+	error = saCkptSectionCreate (checkpointHandle,
+									&sectionCreationAttributes2,
+									"Initial Data #2",
+									strlen ("Initial Data #2") + 1);
+	printf ("%s: creating section 2 \n",
+		get_test_output (error, SA_AIS_OK));
+
 	error = saCkptSectionExpirationTimeSet (checkpointHandle,
 		&sectionId2,
 		SA_TIME_END);
@@ -322,12 +329,6 @@ printf ("Please wait, testing expiry of checkpoint sections.\n");
 	 */
 	memset (readBuffer1, 0, sizeof (readBuffer1));
 	memset (readBuffer2, 0, sizeof (readBuffer2));
-	error = saCkptSectionCreate (checkpointHandle,
-		&sectionCreationAttributes2,
-		"Initial Data #2",
-		strlen ("Initial Data #2") + 1);
-	printf ("%s: creating checkpoint for read test\n",
-		get_test_output (error, SA_AIS_OK));
 
 	error = saCkptCheckpointRead (checkpointHandle,
 		ReadVectorElements,