X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Ftest-canonicalize-lgpl.c;h=17cdff0970f546fcb8466c0faf7617ae62aad5e2;hb=88418d5fd24c99aac393d3e2f564f6939e4e2fe3;hp=816b4019abba2367d75f0e2c0aa94e78adbd4357;hpb=b2e2010c7c902235b5efb5bd3c6529f61b093aa4;p=gnulib.git diff --git a/tests/test-canonicalize-lgpl.c b/tests/test-canonicalize-lgpl.c index 816b4019a..17cdff097 100644 --- a/tests/test-canonicalize-lgpl.c +++ b/tests/test-canonicalize-lgpl.c @@ -1,5 +1,5 @@ /* Test of execution of program termination handlers. - Copyright (C) 2007-2010 Free Software Foundation, Inc. + Copyright (C) 2007-2011 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -32,6 +32,7 @@ SIGNATURE_CHECK (canonicalize_file_name, char *, (const char *)); #include #include "same-inode.h" +#include "ignore-value.h" #include "macros.h" #define BASE "t-can-lgpl.tmp" @@ -45,7 +46,7 @@ null_ptr (void) int main (void) { -#ifdef GNULIB_CANONICALIZE +#if GNULIB_TEST_CANONICALIZE /* No need to test canonicalize-lgpl module if canonicalize is also in use. */ return 0; @@ -55,7 +56,7 @@ main (void) any leftovers from a previous partial run. */ { int fd; - system ("rm -rf " BASE " ise"); + ignore_value (system ("rm -rf " BASE " ise")); ASSERT (mkdir (BASE, 0700) == 0); fd = creat (BASE "/tra", 0600); ASSERT (0 <= fd);