aboutsummaryrefslogtreecommitdiffstats
path: root/test/rspamd_test_suite.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/rspamd_test_suite.c')
-rw-r--r--test/rspamd_test_suite.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/rspamd_test_suite.c b/test/rspamd_test_suite.c
index d7b660642..48645ca93 100644
--- a/test/rspamd_test_suite.c
+++ b/test/rspamd_test_suite.c
@@ -12,6 +12,7 @@ worker_t *workers[] = { NULL };
gchar *lua_test = NULL;
gchar *lua_test_case = NULL;
gboolean verbose = FALSE;
+gchar *argv0_dirname = NULL;
static GOptionEntry entries[] =
{
@@ -45,6 +46,8 @@ main (int argc, char **argv)
g_test_init (&argc, &argv, NULL);
+ argv0_dirname = g_path_get_dirname (argv[0]);
+
context = g_option_context_new ("- run rspamd test");
g_option_context_add_main_entries (context, entries, NULL);