projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
strtod: Restore errno when successfully parsing Infinity or NaN.
[gnulib.git]
/
tests
/
test-canonicalize-lgpl.c
diff --git
a/tests/test-canonicalize-lgpl.c
b/tests/test-canonicalize-lgpl.c
index
7667983
..
17cdff0
100644
(file)
--- a/
tests/test-canonicalize-lgpl.c
+++ b/
tests/test-canonicalize-lgpl.c
@@
-1,5
+1,5
@@
/* Test of execution of program termination handlers.
/* Test of execution of program termination handlers.
- Copyright (C) 2007-20
09
Free Software Foundation, Inc.
+ Copyright (C) 2007-20
11
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
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,10
@@
#include <stdlib.h>
#include <stdlib.h>
+#include "signature.h"
+SIGNATURE_CHECK (realpath, char *, (const char *, char *));
+SIGNATURE_CHECK (canonicalize_file_name, char *, (const char *));
+
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
@@
-28,18
+32,8
@@
#include <unistd.h>
#include "same-inode.h"
#include <unistd.h>
#include "same-inode.h"
-
-#define ASSERT(expr) \
- do \
- { \
- if (!(expr)) \
- { \
- fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \
- fflush (stderr); \
- abort (); \
- } \
- } \
- while (0)
+#include "ignore-value.h"
+#include "macros.h"
#define BASE "t-can-lgpl.tmp"
#define BASE "t-can-lgpl.tmp"
@@
-52,7
+46,7
@@
null_ptr (void)
int
main (void)
{
int
main (void)
{
-#if
def GNULIB
_CANONICALIZE
+#if
GNULIB_TEST
_CANONICALIZE
/* No need to test canonicalize-lgpl module if canonicalize is also
in use. */
return 0;
/* No need to test canonicalize-lgpl module if canonicalize is also
in use. */
return 0;
@@
-62,7
+56,7
@@
main (void)
any leftovers from a previous partial run. */
{
int fd;
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);
ASSERT (mkdir (BASE, 0700) == 0);
fd = creat (BASE "/tra", 0600);
ASSERT (0 <= fd);