Changes in / [bc417660:76ec309b] in mainline


Ignore:
Location:
uspace/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/string.h

    rbc417660 r76ec309b  
    6464extern size_t strlen(const char *);
    6565
    66 #if defined(_HELENOS_SOURCE) || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_LIBC_SOURCE)
     66#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_LIBC_SOURCE)
    6767extern size_t strnlen(const char *, size_t);
    6868extern char *strdup(const char *);
  • uspace/lib/pcut/src/report/tap.c

    rbc417660 r76ec309b  
    3535#include "report.h"
    3636
    37 #ifdef __helenos__
    38 #define _REALLY_WANT_STRING_H
     37#ifndef __helenos__
     38#pragma warning(push, 0)
     39#include <string.h>
     40#pragma warning(pop)
    3941#endif
    4042
    4143#pragma warning(push, 0)
    42 #include <string.h>
    4344#include <stdio.h>
    4445#pragma warning(pop)
     
    5657/** Counter of failed tests in current suite. */
    5758static int failed_tests_in_suite;
    58 
    59 /** Comma-separated list of failed test names. */
    60 static char *failed_test_names;
    6159
    6260/** Initialize the TAP output.
     
    172170
    173171        print_by_lines(extra_output, "# stdio: ");
    174 
    175         if (outcome != PCUT_OUTCOME_PASS) {
    176                 if (failed_test_names == NULL) {
    177                         failed_test_names = strdup(test_name);
    178                 } else {
    179                         char *fs = NULL;
    180                         if (asprintf(&fs, "%s, %s",
    181                             failed_test_names, test_name) >= 0) {
    182                                 free(failed_test_names);
    183                                 failed_test_names = fs;
    184                         }
    185                 }
    186         }
    187172}
    188173
     
    193178        } else {
    194179                printf("#> Done: %d of %d tests failed.\n", failed_test_counter, test_counter);
    195                 printf("#> Failed tests: %s\n", failed_test_names);
    196180        }
    197181}
Note: See TracChangeset for help on using the changeset viewer.