ソースを参照

enable some testing code.

(Logical change 1.117)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@418 fd59a12c-fef9-0310-b244-a6a79926bd2f
Steven Dake 21 年 前
コミット
0458d9c734
1 ファイル変更5 行追加1 行削除
  1. 5 1
      test/testckpt.c

+ 5 - 1
test/testckpt.c

@@ -171,6 +171,11 @@ int main (void) {
 		&sectionCreationAttributes1,
 		"Initial Data #0",
 		strlen ("Initial Data #0") + 1);
+	if (error != SA_OK) {
+		error = saCkptSectionExpirationTimeSet (&checkpointHandle,
+			&sectionId1,
+			sectionCreationAttributes1.expirationTime);
+	}
 
 printf ("create1 error is %d\n", error);
 printf ("Please wait, testing expiry of checkpoint sections.\n");
@@ -187,7 +192,6 @@ printf ("Please wait, testing expiry of checkpoint sections.\n");
 	error = saCkptCheckpointRetentionDurationSet (&checkpointHandle,
 						      5000000000LL);
 	printf ("RetentionDurationSet is %d\n", error);
-	exit (1);
 
 	error = saCkptSectionCreate (&checkpointHandle,
 		&sectionCreationAttributes2,