OSSP CVS Repository

ossp - Difference in ossp-pkg/xds/regression-tests/xds-register.c versions 1.2 and 1.3
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/xds/regression-tests/xds-register.c 1.2 -> 1.3

--- xds-register.c       2001/07/08 15:18:50     1.2
+++ xds-register.c       2001/07/08 15:58:14     1.3
@@ -104,6 +104,38 @@
             }
         }
 
+    /* Try to remove an unknown entry. */
+
+    if (xds_unregister(xds, "abacadabra") != XDS_ERR_UNKNOWN_ENGINE)
+        {
+        printf("xds_unregister() succeeded at removing 'abacadabra' even though it is not there.\n");
+        exit(1);
+        }
+
+    /* Remove an entry from the middle. */
+
+    if (xds_unregister(xds, "heinz") != XDS_OK)
+        {
+        printf("xds_unregister() failed to remove 'heinz'.\n");
+        exit(1);
+        }
+
+    /* Remove the last entry. */
+
+    if (xds_unregister(xds, "zarah") != XDS_OK)
+        {
+        printf("xds_unregister() failed to remove 'bar'.\n");
+        exit(1);
+        }
+
+    /* Remove the first entry. */
+
+    if (xds_unregister(xds, "bar") != XDS_OK)
+        {
+        printf("xds_unregister() failed to remove 'bar'.\n");
+        exit(1);
+        }
+
     /* Clean up. */
 
     xds_destroy(xds);

CVSTrac 2.0.1