Ignore:
Timestamp:
Jun 26, 2005, 12:42:04 AM (20 years ago)
Author:
bird
Message:

libc adjustments. extending some testcases.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libctests/glibc/string/tst-strxfrm.c

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r2075 r2076  
    66
    77
    8 char const string[] = "";
    9 
    10 
    118static int
    12 test (const char *locale)
     9test (const char *locale, const char *string)
    1310{
    1411  size_t bufsize;
     
    1815#ifdef HAVE_NEWLOCALE
    1916  locale_t loc;
    20 #endif 
     17#endif
    2118  int result = 0;
    2219
     
    5552
    5653  freelocale (loc);
    57 #endif 
     54#endif
    5855
    5956  free (buf);
     
    6865  int result = 0;
    6966
    70   result |= test ("C");
    71 #ifdef __BSD__ /* bsd is missing the aliases. loosers. */
    72   result |= test ("en_US.ISO8859-1");
     67  result |= test ("C", "");
     68  result |= test ("C", "abcABCxyzXYZ|+-/*(%$");
     69#ifdef __BSD__ /* BSD is missing the aliases. loosers. */
     70  result |= test ("en_US.ISO8859-1", "");
     71  result |= test ("en_US.ISO8859-1", "abcABCxyzXYZ|+-/*(%$");
    7372#else
    74   result |= test ("en_US.ISO-8859-1");
    75 #endif
    76   result |= test ("de_DE.UTF-8");
     73  result |= test ("en_US.ISO-8859-1", "");
     74  result |= test ("en_US.ISO-8859-1", "abcABCxyzXYZ|+-/*(%$");
     75#endif
     76  result |= test ("de_DE.UTF-8", "");
     77  result |= test ("de_DE.UTF-8", "abcABCxyzXYZ|+-/*(%$");
    7778
    7879  return result;
Note: See TracChangeset for help on using the changeset viewer.