X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-dirent-safer.c;h=dc8b6a229f2f3dd66e7c5b5b06a18b1a90bf0a0f;hb=69c6204c668c6f6821d2b126f88092baf8bfc8d4;hp=1a83eeac7b2031b41dfab20f3f1d46382012a0fc;hpb=b2e2010c7c902235b5efb5bd3c6529f61b093aa4;p=gnulib.git diff --git a/tests/test-dirent-safer.c b/tests/test-dirent-safer.c index 1a83eeac7..dc8b6a229 100644 --- a/tests/test-dirent-safer.c +++ b/tests/test-dirent-safer.c @@ -48,7 +48,7 @@ main (void) gnulib version of fdopendir is unable to guarantee that dirfd(fdopendir(fd))==fd, but we can at least guarantee that if they are not equal, the fd returned by dirfd is safe. */ -#if HAVE_FDOPENDIR || GNULIB_FDOPENDIR +#if HAVE_FDOPENDIR || GNULIB_TEST_FDOPENDIR int dfd; #endif @@ -57,7 +57,7 @@ main (void) || (myerr = fdopen (BACKUP_STDERR_FILENO, "w")) == NULL) return 2; -#if HAVE_FDOPENDIR || GNULIB_FDOPENDIR +#if HAVE_FDOPENDIR || GNULIB_TEST_FDOPENDIR dfd = open (".", O_RDONLY); ASSERT (STDERR_FILENO < dfd); #endif @@ -73,7 +73,7 @@ main (void) ASSERT (dirfd (dp) == -1 || STDERR_FILENO < dirfd (dp)); ASSERT (closedir (dp) == 0); -#if HAVE_FDOPENDIR || GNULIB_FDOPENDIR +#if HAVE_FDOPENDIR || GNULIB_TEST_FDOPENDIR { int fd = dup_safer (dfd); ASSERT (STDERR_FILENO < fd); @@ -88,7 +88,7 @@ main (void) #endif } -#if HAVE_FDOPENDIR || GNULIB_FDOPENDIR +#if HAVE_FDOPENDIR || GNULIB_TEST_FDOPENDIR ASSERT (close (dfd) == 0); #endif