mirror of
https://github.com/weechat/weechat.git
synced 2026-06-12 14:14:48 +02:00
tests: move include of tests/tests.h outside of extern "C"
This commit is contained in:
@@ -21,6 +21,8 @@
|
||||
|
||||
#include "CppUTest/TestHarness.h"
|
||||
|
||||
#include "tests/tests.h"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#ifndef HAVE_CONFIG_H
|
||||
@@ -37,8 +39,6 @@ extern "C"
|
||||
#include "src/plugins/plugin.h"
|
||||
}
|
||||
|
||||
#include "tests/tests.h"
|
||||
|
||||
struct t_hook *api_hook_print = NULL;
|
||||
int api_tests_ok = 0;
|
||||
int api_tests_errors = 0;
|
||||
|
||||
@@ -21,10 +21,11 @@
|
||||
|
||||
#include "CppUTest/TestHarness.h"
|
||||
|
||||
#include "tests/tests.h"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <string.h>
|
||||
#include "tests/tests.h"
|
||||
#include "src/core/wee-config-file.h"
|
||||
#include "src/core/wee-config.h"
|
||||
#include "src/core/wee-secure-config.h"
|
||||
|
||||
@@ -21,13 +21,14 @@
|
||||
|
||||
#include "CppUTest/TestHarness.h"
|
||||
|
||||
#include "tests/tests.h"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <signal.h>
|
||||
#include "tests/tests.h"
|
||||
#include "src/core/wee-signal.h"
|
||||
}
|
||||
|
||||
|
||||
@@ -21,6 +21,8 @@
|
||||
|
||||
#include "CppUTest/TestHarness.h"
|
||||
|
||||
#include "tests/tests.h"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#ifndef HAVE_CONFIG_H
|
||||
@@ -31,7 +33,6 @@ extern "C"
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <regex.h>
|
||||
#include "tests/tests.h"
|
||||
#include "src/core/weechat.h"
|
||||
#include "src/core/wee-config.h"
|
||||
#include "src/core/wee-string.h"
|
||||
|
||||
@@ -21,12 +21,13 @@
|
||||
|
||||
#include "CppUTest/TestHarness.h"
|
||||
|
||||
#include "tests/tests.h"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <wctype.h>
|
||||
#include "tests/tests.h"
|
||||
#include "src/core/wee-utf8.h"
|
||||
#include "src/core/wee-config.h"
|
||||
}
|
||||
|
||||
@@ -21,9 +21,10 @@
|
||||
|
||||
#include "CppUTest/TestHarness.h"
|
||||
|
||||
#include "tests/tests.h"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include "tests/tests.h"
|
||||
#include "src/plugins/irc/irc-buffer.h"
|
||||
}
|
||||
|
||||
|
||||
@@ -21,10 +21,11 @@
|
||||
|
||||
#include "CppUTest/TestHarness.h"
|
||||
|
||||
#include "tests/tests.h"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include "string.h"
|
||||
#include "tests/tests.h"
|
||||
#include "src/core/wee-config-file.h"
|
||||
#include "src/core/wee-hashtable.h"
|
||||
#include "src/core/wee-hook.h"
|
||||
|
||||
@@ -21,6 +21,8 @@
|
||||
|
||||
#include "CppUTest/TestHarness.h"
|
||||
|
||||
#include "tests/tests.h"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <stdio.h>
|
||||
@@ -54,8 +56,6 @@ extern char *irc_protocol_cap_to_enable (const char *capabilities,
|
||||
int sasl_requested);
|
||||
}
|
||||
|
||||
#include "tests/tests.h"
|
||||
|
||||
#define IRC_FAKE_SERVER "fake"
|
||||
#define IRC_MSG_005 "PREFIX=(ohv)@%+ MAXLIST=bqeI:100 MODES=4 " \
|
||||
"NETWORK=StaticBox STATUSMSG=@+ CALLERID=g " \
|
||||
|
||||
@@ -21,6 +21,8 @@
|
||||
|
||||
#include "CppUTest/TestHarness.h"
|
||||
|
||||
#include "tests/tests.h"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <stdio.h>
|
||||
@@ -31,8 +33,6 @@ extern "C"
|
||||
extern char *irc_server_build_autojoin (struct t_irc_server *server);
|
||||
}
|
||||
|
||||
#include "tests/tests.h"
|
||||
|
||||
#define IRC_FAKE_SERVER "fake"
|
||||
|
||||
TEST_GROUP(IrcServer)
|
||||
|
||||
@@ -21,6 +21,8 @@
|
||||
|
||||
#include "CppUTest/TestHarness.h"
|
||||
|
||||
#include "tests/tests.h"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <stdio.h>
|
||||
@@ -34,9 +36,6 @@ extern void logger_backlog_display_line (struct t_gui_buffer *buffer,
|
||||
const char *line);
|
||||
}
|
||||
|
||||
#include "tests/tests.h"
|
||||
|
||||
|
||||
TEST_GROUP(LoggerBacklog)
|
||||
{
|
||||
};
|
||||
|
||||
@@ -21,6 +21,8 @@
|
||||
|
||||
#include "CppUTest/TestHarness.h"
|
||||
|
||||
#include "tests/tests.h"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <stdio.h>
|
||||
@@ -28,8 +30,6 @@ extern "C"
|
||||
#include "src/plugins/trigger/trigger.h"
|
||||
}
|
||||
|
||||
#include "tests/tests.h"
|
||||
|
||||
#define WEE_CHECK_MODIFIER(__result, __modifier, __string) \
|
||||
WEE_TEST_STR( \
|
||||
__result, \
|
||||
|
||||
@@ -21,6 +21,8 @@
|
||||
|
||||
#include "CppUTest/TestHarness.h"
|
||||
|
||||
#include "tests/tests.h"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <stdio.h>
|
||||
@@ -30,8 +32,6 @@ extern "C"
|
||||
#include "src/plugins/trigger/trigger.h"
|
||||
}
|
||||
|
||||
#include "tests/tests.h"
|
||||
|
||||
#define WEE_CHECK_REGEX_SPLIT(__rc, __ret_regex_count, __str_regex) \
|
||||
trigger_regex_free (®ex_count, ®ex); \
|
||||
LONGS_EQUAL(__rc, trigger_regex_split (__str_regex, \
|
||||
|
||||
@@ -21,6 +21,8 @@
|
||||
|
||||
#include "CppUTest/TestHarness.h"
|
||||
|
||||
#include "tests/tests.h"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include "src/core/wee-hashtable.h"
|
||||
@@ -28,9 +30,6 @@ extern "C"
|
||||
#include "src/plugins/typing/typing-status.h"
|
||||
}
|
||||
|
||||
#include "tests/tests.h"
|
||||
|
||||
|
||||
TEST_GROUP(TypingStatus)
|
||||
{
|
||||
};
|
||||
|
||||
@@ -21,14 +21,13 @@
|
||||
|
||||
#include "CppUTest/TestHarness.h"
|
||||
|
||||
#include "tests/tests.h"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include "src/plugins/typing/typing.h"
|
||||
}
|
||||
|
||||
#include "tests/tests.h"
|
||||
|
||||
|
||||
TEST_GROUP(Typing)
|
||||
{
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user