~ubuntu-branches/ubuntu/natty/augeas/natty

« back to all changes in this revision

Viewing changes to gnulib/tests/test-canonicalize-lgpl.c

  • Committer: Bazaar Package Importer
  • Author(s): Nicolas Valcárcel Scerpella (Canonical)
  • Date: 2010-06-25 16:12:45 UTC
  • mfrom: (1.2.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20100625161245-8pwq1gbejazeo07u
Tags: 0.7.2-1
* New upstream release
* Droped 50_iptables-lens.diff. Included upstream
* Updated libaugeas0.symbols

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
#include <unistd.h>
33
33
 
34
34
#include "same-inode.h"
 
35
#include "ignore-value.h"
35
36
#include "macros.h"
36
37
 
37
38
#define BASE "t-can-lgpl.tmp"
45
46
int
46
47
main (void)
47
48
{
48
 
#ifdef GNULIB_CANONICALIZE
 
49
#if GNULIB_TEST_CANONICALIZE
49
50
  /* No need to test canonicalize-lgpl module if canonicalize is also
50
51
     in use.  */
51
52
  return 0;
55
56
     any leftovers from a previous partial run.  */
56
57
  {
57
58
    int fd;
58
 
    system ("rm -rf " BASE " ise");
 
59
    ignore_value (system ("rm -rf " BASE " ise"));
59
60
    ASSERT (mkdir (BASE, 0700) == 0);
60
61
    fd = creat (BASE "/tra", 0600);
61
62
    ASSERT (0 <= fd);