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-vfprintf.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r2088 r2089  
    2020
    2121#include <locale.h>
     22#ifdef HAVE_MCHECK_H
    2223#include <mcheck.h>
     24#endif
    2325#include <stdint.h>
    2426#include <stdio.h>
     
    4648  int fd;
    4749
     50#ifdef HAVE_MCHECK_H
    4851  mtrace ();
     52#endif
    4953
    5054  strcpy (buf, "/tmp/test-vfprintfXXXXXX");
     
    5559      exit (1);
    5660    }
    57   unlink (buf);
    5861
    5962  for (i = 0; i < nlocs; ++i)
     
    7578          exit (1);
    7679        }
    77 
    7880      if (ftruncate (fd2, 0) != 0)
    7981        {
     
    120122    }
    121123
     124#ifdef __EMX__
    122125  close (fd);
    123 
     126  unlink (buf);
     127#else
     128  unlink (buf);
     129  close (fd);
     130#endif
    124131  return res;
    125132}
Note: See TracChangeset for help on using the changeset viewer.