OSSP CVS Repository

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

ossp-pkg/xds/regression-tests/xds-find-engine.c 1.1 -> 1.2

--- xds-find-engine.c    2001/07/08 14:05:35     1.1
+++ xds-find-engine.c    2001/07/08 14:19:00     1.2
@@ -49,6 +49,19 @@
     size_t pos;
     size_t i;
 
+    /* Does xds_find_engine handle an empty array? */
+
+    if (xds_find_engine(engines, 0, "whatever", &pos))
+        {
+        printf("xds_find_engine() said 'whatever' would be in the array, but that's wrong.\n");
+        exit(1);
+        }
+    if (pos != 0)
+        {
+        printf("xds_find_engine() would insert 'whatever' at position %d, but 0 is correct.\n", pos);
+        exit(1);
+        }
+
     /* Search for every single entry in the array and check the
        results. */
 

CVSTrac 2.0.1