components/libneon/patches/002-tests-common-test.c.patch
branchs11-update
changeset 4172 a6d468ddeb77
equal deleted inserted replaced
4171:2e163eeb727a 4172:a6d468ddeb77
       
     1 # Internal patch.
       
     2 # We don't want \r we want \n because we're UNIX.
       
     3 # Not for upstream.
       
     4 --- test/common/tests.c	2013-07-31 06:50:34.000000000 -0700
       
     5 +++ test/common/tests.c	2015-03-17 19:13:48.294707531 -0700
       
     6 @@ -154,7 +154,7 @@
       
     7  static void print_prefix(int n)
       
     8  {
       
     9      if (quiet) {
       
    10 -        printf("\r%s%.*s %2u/%2u ", test_suite, 
       
    11 +        printf("\n%s%.*s %2u/%2u ", test_suite, 
       
    12                 (int) (strlen(dots) - strlen(test_suite)), dots,
       
    13                 n + 1, count);
       
    14      }
       
    15 @@ -163,7 +163,7 @@
       
    16  	    printf("    %s ", dots);
       
    17          }
       
    18          else {
       
    19 -            printf("\r%2d. %s%.*s ", n, test_name, 
       
    20 +            printf("\n%2d. %s%.*s ", n, test_name, 
       
    21                 (int) (strlen(dots) - strlen(test_name)), dots);
       
    22          }
       
    23      }
       
    24 @@ -393,7 +393,7 @@
       
    25              printf("<- all tests skipped for `%s'.\n", test_suite);
       
    26      } else {
       
    27          if (quiet) {
       
    28 -            printf("\r%s%.*s %2u/%2u ", test_suite, 
       
    29 +            printf("\n%s%.*s %2u/%2u ", test_suite, 
       
    30                     (int) (strlen(dots) - strlen(test_suite)), dots,
       
    31                     passes, count);
       
    32              if (fails == 0) {