OSSP CVS Repository

ossp - Check-in [1953]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 1953
Date: 2002-Mar-06 12:09:12 (local)
2002-Mar-06 11:09:12 (UTC)
User:rse
Branch:
Comment: cleanup output of test suite
Tickets:
Inspections:
Files:
ossp-pkg/var/var_test.c      1.40 -> 1.41     4 inserted, 7 deleted

ossp-pkg/var/var_test.c 1.40 -> 1.41

--- var_test.c   2002/03/04 12:01:53     1.40
+++ var_test.c   2002/03/06 11:09:12     1.41
@@ -44,8 +44,6 @@
 {
     int i;
 
-    fprintf(stderr, "op=<%s>(%d) arg=<%s>(%d) val=<%s>(%d)\n", 
-            op_ptr, op_len, arg_ptr, arg_len, val_ptr, val_len);
     if (val_ptr == NULL) {
         *out_ptr = "";
         *out_len = 0;
@@ -273,26 +271,25 @@
     }
 
     for (i = 0; i < sizeof(tests)/sizeof(struct test_case); ++i) {
-        printf("Test case #%02d: Original input is '%s'.\n", i,
-               tests[i].input);
+        printf("Test case #%02d: Original input is '%s'.\n", i, tests[i].input);
         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);
+            printf("Test case #%02d: var_unescape() failed: %s (%d)\n", i, err, rc);
             return 1;
         }
         printf("Test case #%02d: Unescaped input is '%s'.\n", i, buffer);
         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);
+            printf("Test case #%02d: var_expand() failed: %s (%d).\n", i, err, rc);
             return 1;
         }
         printf("Test case #%02d: Expanded output is '%s'.\n", i, tmp);
         if (   tmp_len != strlen(tests[i].expected)
             || tmp == NULL
             || memcmp(tests[i].expected, tmp, tmp_len) != 0) {
-            printf("Test case #%d: Expected result '%s' but got '%s'.\n",
+            printf("Test case #%02d: Expected result '%s' but got '%s'.\n",
                    i, tests[i].expected, tmp);
             return 1;
         }

CVSTrac 2.0.1