Ignore:
Timestamp:
Jun 17, 2005, 6:32:39 AM (20 years ago)
Author:
bird
Message:

Porting to 64-bit FreeBSD...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libctests/glibc/string/tester.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r2043 r2044  
    267267test_stpncpy (void)
    268268{
     269#ifdef HAVE_STPNCPY
    269270  it = "stpncpy";
    270271  memset (one, 'x', sizeof (one));
     
    277278  check (stpncpy (one, "abcd", 6) == one + 4, 7);
    278279  check (one[4] == '\0' && one[5] == '\0' && one[6] == 'x', 8);
     280#endif
    279281}
    280282
     
    466468test_strchrnul (void)
    467469{
     470#ifdef HAVE_STRCHRNUL
    468471  const char *os;
    469472  it = "strchrnul";
     
    495498      }
    496499   }
     500#endif
    497501}
    498502
     
    500504test_rawmemchr (void)
    501505{
     506#ifdef HAVE_RAWMEMCHR
    502507  it = "rawmemchr";
    503508  (void) strcpy (one, "abcd");
     
    522527      }
    523528   }
     529#endif
    524530}
    525531
     
    573579test_memrchr (void)
    574580{
     581#ifdef HAVE_MEMRCHR
    575582  size_t l;
    576583  it = "memrchr";
     
    614621    }
    615622  }
     623 #endif
    616624}
    617625
     
    825833test_strsep (void)
    826834{
     835#ifdef HAVE_STRSEP
    827836  char *ptr;
    828837  it = "strsep";
     
    953962  check(ptr == one , 87);
    954963  check(cp == NULL, 88);
     964#endif
    955965}
    956966
     
    10521062test_mempcpy (void)
    10531063{
     1064#ifdef HAVE_MEMPCPY
    10541065  int i;
    10551066  it = "mempcpy";
     
    10841095      equal (two, "hi there", 12 + (i * 6));
    10851096    }
     1097#endif
    10861098}
    10871099
     
    12631275}
    12641276
     1277
    12651278static void
    12661279test_strndup (void)
    12671280{
     1281#ifdef HAVE_STRNDUP
    12681282  char *p, *q;
    12691283  it = "strndup";
     
    12851299    equal(p, "abc", 6);
    12861300  free (p);
     1301#endif
    12871302}
    12881303
Note: See TracChangeset for help on using the changeset viewer.