# HG changeset patch # User Jim Meyering # Date 1317474403 -7200 # Node ID bf1b12f633c40612b3083e9cf44d6ffa72e90c5c # Parent 6f74138bc27208b51c39b1f886bc7af17f3aec8c 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 diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2011-10-01 Jim Meyering + 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 --- a/tests/test-linkat.c +++ b/tests/test-linkat.c @@ -117,6 +117,7 @@ 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);