3
* Canonical Ltd. (All rights reserved)
5
* This program is free software; you can redistribute it and/or
6
* modify it under the terms of version 2 of the GNU General Public
7
* License published by the Free Software Foundation.
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.
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, contact Novell, Inc. or Canonical
18
#ifndef __AA_UNIT_TEST_H
19
#define __AA_UNIT_TEST_H
22
/* For the unit-test builds, we must include function stubs for stuff that
23
* only exists in the excluded object files; everything else should live
29
#include <linux/limits.h>
35
void yyerror(const char *msg, ...)
41
vsnprintf(buf, sizeof(buf), msg, arg);
44
PERROR(_("AppArmor parser error: %s\n"), buf);
49
#define MY_TEST(statement, error) \
51
PERROR("FAIL: %s\n", error); \
55
#endif /* UNIT_TEST */
57
#endif /* __AA_UNIT_TEST_H */