From: Jim Meyering Date: Sat, 1 Oct 2011 13:06:43 +0000 (+0200) Subject: test-linkat: don't leave behind a temporary file X-Git-Tag: v0.1~1716 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=249999fae8f857a1ab285dc936e697f1e10138e9;p=gnulib.git 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 index 779e00d80..7ad4703bb 100644 --- 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 index 40b837147..6da82b0fa 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);