From ccd9d2d7e02defcc6ee7464e11dda76776609ada Mon Sep 17 00:00:00 2001 From: Steven Dake Date: Tue, 6 Jul 2004 19:25:41 +0000 Subject: [PATCH] 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 --- test/testamfth.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/testamfth.c b/test/testamfth.c index 2151e3cc..8fd3c235 100644 --- a/test/testamfth.c +++ b/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); }