X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-mkdirat.c;h=0eb5e2d491e5ba984869ba657f0d90e649a9506c;hb=f4293d352452dd3c03c81ea1e14a4d3dcd050de7;hp=9b59f17a48fb35935f065f900399253262736c9a;hpb=82381b9e5b37125305709d412d8322b35e5c4796;p=gnulib.git diff --git a/tests/test-mkdirat.c b/tests/test-mkdirat.c index 9b59f17a4..0eb5e2d49 100644 --- a/tests/test-mkdirat.c +++ b/tests/test-mkdirat.c @@ -1,5 +1,5 @@ /* Tests of mkdirat. - Copyright (C) 2009 Free Software Foundation, Inc. + Copyright (C) 2009-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 @@ -20,6 +20,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (mkdirat, int, (int, char const *, mode_t)); + #include #include #include @@ -27,17 +30,9 @@ #include #include -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - fflush (stderr); \ - abort (); \ - } \ - } \ - while (0) +#include "progname.h" +#include "ignore-value.h" +#include "macros.h" #define BASE "test-mkdirat.t" @@ -53,12 +48,14 @@ do_mkdir (char const *name, mode_t mode) } int -main (void) +main (int argc _GL_UNUSED, char *argv[]) { int result; + set_program_name (argv[0]); + /* Clean up any trash from prior testsuite runs. */ - ASSERT (system ("rm -rf " BASE "*") == 0); + ignore_value (system ("rm -rf " BASE "*")); /* Test basic mkdir functionality. */ result = test_mkdir (do_mkdir, false);