bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] test-linkat: don't leave behind a temporary file


From: Jim Meyering
Subject: [PATCH] test-linkat: don't leave behind a temporary file
Date: Sat, 01 Oct 2011 15:50:31 +0200

FYI,

>From 249999fae8f857a1ab285dc936e697f1e10138e9 Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Sat, 1 Oct 2011 15:06:43 +0200
Subject: [PATCH] test-linkat: don't leave behind a temporary file

* tests/test-linkat.c (main): Don't forget to remove a temporary file.
Otherwise, coreutils' "make distcheck" would fail with this:
  Only in /c/cu/tests/torture/coreutils/test/\
    coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
  make[2]: *** [my-distcheck] Error 1
---
 ChangeLog           |    7 +++++++
 tests/test-linkat.c |    1 +
 2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 779e00d..7ad4703 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2011-10-01  Jim Meyering  <address@hidden>

+       test-linkat: don't leave behind a temporary file
+       * tests/test-linkat.c (main): Don't forget to remove a temporary file.
+       Otherwise, coreutils' "make distcheck" would fail with this:
+         Only in /c/cu/tests/torture/coreutils/test/\
+           coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
+         make[2]: *** [my-distcheck] Error 1
+
        float, math: add omitted file
        * lib/itold.c: Add file, required for yesterday's float change.

diff --git a/tests/test-linkat.c b/tests/test-linkat.c
index 40b8371..6da82b0 100644
--- a/tests/test-linkat.c
+++ b/tests/test-linkat.c
@@ -117,6 +117,7 @@ main (void)
     ASSERT (linkat (AT_FDCWD, BASE "oo", 99, "bar", 0) == -1);
     ASSERT (errno == EBADF);
   }
+  ASSERT (unlink (BASE "oo") == 0);

   /* Test basic link functionality, without mentioning symlinks.  */
   result = test_link (do_link, true);
--
1.7.7.rc0.362.g5a14



reply via email to

[Prev in Thread] Current Thread [Next in Thread]