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

Fix example to use component names in example service group.

(Logical change 1.21)


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

+ 7 - 1
test/testamfth.c

@@ -259,7 +259,7 @@ int main (void) {
 		exit (1);
 	}
 
-	setSanameT (&compName, "raidupdate1");
+	setSanameT (&compName, "comp_b_in_su_y");
 
 	result = saAmfComponentRegister (&handle, &compName, NULL);
 	printf ("register result is %d (should be 1)\n", result);
@@ -269,12 +269,18 @@ int main (void) {
 	sleep (5);
 
 printf ("Finalizing handle\n");
+
+	saAmfComponentUnregister (&handle, &compName, NULL);
+
 	saAmfFinalize (&handle);
+
+printf ("Handle Finalized\n");
 	sleep (1); /* this sleep isn't really necessary */
 	result = saAmfInitialize (&handle, &amfCallbacks, &version);
 	result = saAmfComponentRegister (&handle, &compName, NULL);
 	pthread_create (&dispatch_thread, NULL, th_dispatch, &handle);
 	sleep (10);
+//	saAmfFinalize (&handle);
 
 	exit (0);
 }