Ignore:
Timestamp:
Jun 27, 2005, 5:05:29 AM (20 years ago)
Author:
bird
Message:

testcase adjustments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libctests/glibc/stdio-common/test-fwrite.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r2088 r2089  
    3535  line = NULL;
    3636  linesz = 0;
     37#ifdef HAVE_GETLINE
    3738  if (getline (&line, &linesz, f) != 5)
    3839    {
     
    4041      return 1;
    4142    }
     43#else
     44  char fgetbuf [80];
     45  line = fgets (fgetbuf, sizeof(fgetbuf), f);
     46  if (!line)
     47    {
     48      perror ("gets");
     49      return 1;
     50    }
     51#endif
    4252  if (strcmp (line, "line\n"))
    4353    {
     
    5868    }
    5969
     70#ifdef HAVE_ASPRINTF
    6071  asprintf (&line, "\
    6172GDB is free software and you are welcome to distribute copies of it\n\
     
    6374There is absolutely no warranty for GDB; type \"show warranty\" for details.\n\
    6475");
     76#endif
    6577
    6678  puts ("Test succeeded.");
Note: See TracChangeset for help on using the changeset viewer.