OSSP CVS Repository

ossp - Difference in ossp-pkg/var/var_test.c versions 1.37 and 1.38
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/var/var_test.c 1.37 -> 1.38

--- var_test.c   2002/02/28 12:40:01     1.37
+++ var_test.c   2002/02/28 20:27:05     1.38
@@ -62,9 +62,6 @@
     else {
         for (i = 0; vars[i].name; ++i) {
             if (strncmp(varname, vars[i].name, name_len) == 0) {
-#ifdef DEBUG
-                printf("Found variable at index %d.\n", i);
-#endif
                 counter = 1;
                 length = strlen(vars[i].data);
                 while (   vars[i + counter].data
@@ -221,28 +218,22 @@
     }
 
     for (i = 0; i < sizeof(tests)/sizeof(struct test_case); ++i) {
-#ifdef DEBUG
         printf("Test case #%02d: Original input is '%s'.\n", i,
                tests[i].input);
-#endif
         rc = var_unescape(var, tests[i].input, strlen(tests[i].input), buffer, sizeof(buffer), 0);
         if (rc != VAR_OK) {
             var_strerror(var, rc, &err);
             printf("Test case #%d: var_unescape() failed: %s (%d)\n", i, err, rc);
             return 1;
         }
-#ifdef DEBUG
         printf("Test case #%02d: Unescaped input is '%s'.\n", i, buffer);
-#endif
         rc = var_expand(var, buffer, strlen(buffer), &tmp, &tmp_len, 0);
         if (rc != VAR_OK) {
             var_strerror(var, rc, &err);
             printf("Test case #%d: var_expand() failed: %s (%d).\n", i, err, rc);
             return 1;
         }
-#ifdef DEBUG
         printf("Test case #%02d: Expanded output is '%s'.\n", i, tmp);
-#endif
         if (   tmp_len != strlen(tests[i].expected)
             || tmp == NULL
             || memcmp(tests[i].expected, tmp, tmp_len) != 0) {

CVSTrac 2.0.1