X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Ftest-canonicalize-lgpl.c;h=17cdff0970f546fcb8466c0faf7617ae62aad5e2;hb=07809063056aef043ba738ab8229042f1ffc9659;hp=e35d921bbdf43fd461d67ecf701fc6122b040709;hpb=987e5651e8d1c5aa933c9ce88562806af4093702;p=gnulib.git diff --git a/tests/test-canonicalize-lgpl.c b/tests/test-canonicalize-lgpl.c index e35d921bb..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-2009 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; - ASSERT (system ("rm -rf " BASE " ise") == 0); + ignore_value (system ("rm -rf " BASE " ise")); ASSERT (mkdir (BASE, 0700) == 0); fd = creat (BASE "/tra", 0600); ASSERT (0 <= fd);