2 Copyright (c) 2010 Frank Lahm <franklahm@gmail.com>
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
20 #endif /* HAVE_CONFIG_H */
27 #include <atalk/util.h>
28 #include <atalk/cnid.h>
29 #include <atalk/logger.h>
30 #include <atalk/volume.h>
31 #include <atalk/directory.h>
32 #include <atalk/queue.h>
33 #include <atalk/bstrlib.h>
34 #include <atalk/globals.h>
36 #include "directory.h"
39 #include "afp_config.h"
43 static inline void alignok(int len)
53 printf("Testing: %s ... ", (#a) ); \
54 alignok(strlen(#a)); \
58 #define TEST_int(a, b) \
59 printf("Testing: %s ... ", (#a) ); \
60 alignok(strlen(#a)); \
61 if ((reti = (a)) != b) { \
62 printf("[error]\n"); \
64 } else { printf("[ok]\n"); }
66 #define TEST_expr(a, b) \
67 printf("Testing: %s ... ", (#a) ); \
68 alignok(strlen(#a)); \
73 printf("[error]\n"); \