OSSP CVS Repository

ossp - Difference in ossp-pkg/sa/sa_test.c versions 1.16 and 1.17
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/sa/sa_test.c 1.16 -> 1.17

--- sa_test.c    2002/03/15 10:47:36     1.16
+++ sa_test.c    2002/10/26 15:45:32     1.17
@@ -55,9 +55,9 @@
         char *out;
     } table[] = {
         /* positive tests */
-        { "inet://0.0.0.0:0", SA_OK, "inet://0.0.0.0:0" }, 
+        { "inet://0.0.0.0:0", SA_OK, "inet://0.0.0.0:0" },
         { "inet://127.0.0.1:514", SA_OK, "inet://127.0.0.1:514" },
-        { "inet://localhost:syslog#udp", SA_OK, "inet://127.0.0.1:514" }, 
+        { "inet://localhost:syslog#udp", SA_OK, "inet://127.0.0.1:514" },
         { "inet://localhost:smtp", SA_OK, "inet://127.0.0.1:25" },
         { "unix:/tmp/socket", SA_OK, "unix:/tmp/socket" },
         /* negative tests */
@@ -69,7 +69,7 @@
 
     ts_test_check(TS_CTX, "sa_addr_create");
     if ((rv = sa_addr_create(&saa)) != SA_OK)
-        ts_test_fail(TS_CTX, "sa_addr_create -> %d[%s] (expected %d[%s])", 
+        ts_test_fail(TS_CTX, "sa_addr_create -> %d[%s] (expected %d[%s])",
                      rv, sa_error(rv), SA_OK, sa_error(SA_OK));
     for (i = 0; i < sizeof(table)/sizeof(table[0]); i++) {
         ts_test_check(TS_CTX, "sa_addr_u2a(\"%s\")", table[i].in);
@@ -82,12 +82,12 @@
                          rv, sa_error(rv), SA_OK, sa_error(SA_OK));
         if (table[i].rv == SA_OK)
             if (strcmp(cp, table[i].out) != 0)
-                ts_test_fail(TS_CTX, "sa_addr_a2u -> \"%s\" (expected \"%s\")", 
+                ts_test_fail(TS_CTX, "sa_addr_a2u -> \"%s\" (expected \"%s\")",
                              cp, table[i].out);
     }
     ts_test_check(TS_CTX, "sa_addr_destroy");
     if ((rv = sa_addr_destroy(saa)) != SA_OK)
-        ts_test_fail(TS_CTX, "sa_addr_destroy -> %d[%s] (expected %d[%s])", 
+        ts_test_fail(TS_CTX, "sa_addr_destroy -> %d[%s] (expected %d[%s])",
                      rv, sa_error(rv), SA_OK, sa_error(SA_OK));
 }
 
@@ -127,7 +127,7 @@
             continue;
         if ((rv = sa_addr_u2a(saa2, table[i].acl)) != SA_OK)
             continue;
-        ts_test_check(TS_CTX, "sa_addr_match(\"%s\", \"%s\", %d)", 
+        ts_test_check(TS_CTX, "sa_addr_match(\"%s\", \"%s\", %d)",
                       table[i].in, table[i].acl, table[i].prefixlen);
         if ((rv = sa_addr_match(saa1, saa2, table[i].prefixlen)) != table[i].rv)
             ts_test_fail(TS_CTX, "sa_addr_match -> %d[%s] (expected %d[%s])",

CVSTrac 2.0.1