forked from enlightenment/efl
tests: fix warnings and undef ref on Windows (using meson :-) )
Summary: we need to include evil_private.h so that some symbols are declared Test Plan: compilation Reviewers: raster, zmike, cedric Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9129
This commit is contained in:
parent
33f5e53af3
commit
ba22016c4c
|
@ -5,6 +5,10 @@
|
|||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
# include <evil_private.h> /* pipe */
|
||||
#endif
|
||||
|
||||
#include <Eina.h>
|
||||
#include <Ecore.h>
|
||||
|
||||
|
|
|
@ -9,6 +9,10 @@
|
|||
#include <fcntl.h>
|
||||
#include <libgen.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
# include <evil_private.h> /* setenv */
|
||||
#endif
|
||||
|
||||
#include <Eina.h>
|
||||
#include <Ecore.h>
|
||||
#include <Ecore_File.h>
|
||||
|
|
|
@ -5,6 +5,10 @@
|
|||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
# include <evil_private.h> /* pipe */
|
||||
#endif
|
||||
|
||||
#include <Eina.h>
|
||||
#include <Ecore.h>
|
||||
|
||||
|
|
|
@ -4,6 +4,11 @@
|
|||
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
# include <evil_private.h> /* pipe */
|
||||
#endif
|
||||
|
||||
#define EFL_NOLEGACY_API_SUPPORT
|
||||
#include <Efl_Core.h>
|
||||
#include "efl_app_suite.h"
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
|
||||
#include <stdio.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
# include <evil_private.h> /* setenv unsetenv */
|
||||
#endif
|
||||
|
||||
#include <Ecore.h>
|
||||
#include <Ecore_Con.h>
|
||||
|
||||
|
|
|
@ -5,6 +5,10 @@
|
|||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
# include <evil_private.h> /* setenv realpath */
|
||||
#endif
|
||||
|
||||
#define EFL_GFX_FILTER_BETA
|
||||
#define EFL_CANVAS_LAYOUT_BETA
|
||||
|
||||
|
|
|
@ -6,6 +6,10 @@
|
|||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
# include <evil_private.h> /* setenv unsetenv */
|
||||
#endif
|
||||
|
||||
#include <Ecore_File.h>
|
||||
#include <Efreet.h>
|
||||
|
||||
|
|
|
@ -7,6 +7,10 @@
|
|||
#include <string.h>
|
||||
#include <limits.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
# include <evil_private.h> /* unsetenv */
|
||||
#endif
|
||||
|
||||
#include <Ecore.h>
|
||||
#include <Ecore_File.h>
|
||||
#include <Efreet.h>
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
#include <fcntl.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
# include <windows.h>
|
||||
# include <evil_private.h> /* mkdir */
|
||||
#endif
|
||||
|
||||
#include <Eina.h>
|
||||
|
@ -724,7 +724,10 @@ EFL_END_TEST
|
|||
EFL_START_TEST(eina_test_file_mktemp)
|
||||
{
|
||||
Eina_Tmpstr *tmpfile, *tmpdir = NULL;
|
||||
char buf[PATH_MAX], fmt[256];
|
||||
char buf[PATH_MAX];
|
||||
#ifndef _WIN32
|
||||
char fmt[256];
|
||||
#endif
|
||||
Eina_File_Direct_Info *info;
|
||||
Eina_Iterator *it;
|
||||
Eina_File *file;
|
||||
|
|
|
@ -8,6 +8,10 @@
|
|||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
# include <evil_private.h> /* mkdir */
|
||||
#endif
|
||||
|
||||
#include "eio_suite.h"
|
||||
#include "eio_test_common.h"
|
||||
|
||||
|
|
|
@ -148,7 +148,10 @@ _stat_done_cb(void *data,
|
|||
|
||||
fail_if(!eina_value_struct_get(&st, "mode", &mode));
|
||||
fail_if(S_ISDIR(mode) != *is_dir);
|
||||
/* no symbolic link on Windows */
|
||||
#ifndef _WIN32
|
||||
fail_if(S_ISLNK(mode));
|
||||
#endif
|
||||
|
||||
rights = mode & (S_IRWXU | S_IRWXG | S_IRWXO);
|
||||
fail_if(rights != default_rights);
|
||||
|
|
|
@ -769,7 +769,7 @@ void eio_test_monitor(TCase *tc)
|
|||
tcase_add_test(tc, eio_test_monitor_directory_multi_file_created_notify);
|
||||
tcase_add_test(tc, eio_test_monitor_directory_file_deleted_notify);
|
||||
tcase_add_test(tc, eio_test_monitor_directory_file_modified_notify);
|
||||
#if !defined(_WIN32) && !defined(__MACH__)
|
||||
#if !defined(__MACH__)
|
||||
tcase_add_test(tc, eio_test_monitor_directory_file_closed_notify);
|
||||
#endif
|
||||
tcase_add_test(tc, eio_test_monitor_directory_directory_created_notify);
|
||||
|
@ -781,7 +781,7 @@ void eio_test_monitor(TCase *tc)
|
|||
|
||||
tcase_add_test(tc, eio_test_monitor_file_file_modified_notify);
|
||||
tcase_add_test(tc, eio_test_monitor_file_file_attrib_modified_notify);
|
||||
#if !defined(_WIN32) && !defined(__MACH__)
|
||||
#if !defined(__MACH__)
|
||||
tcase_add_test(tc, eio_test_monitor_file_file_closed_notify);
|
||||
#endif
|
||||
#ifndef __MACH__
|
||||
|
|
|
@ -674,7 +674,7 @@ void eio_test_sentry(TCase *tc)
|
|||
tcase_add_test(tc, eio_test_sentry_directory_file_created_notify);
|
||||
tcase_add_test(tc, eio_test_sentry_directory_file_deleted_notify);
|
||||
tcase_add_test(tc, eio_test_sentry_directory_file_modified_notify);
|
||||
#if !defined(_WIN32) && !defined(__MACH__)
|
||||
#if !defined(__MACH__)
|
||||
tcase_add_test(tc, eio_test_sentry_directory_file_closed_notify);
|
||||
#endif
|
||||
tcase_add_test(tc, eio_test_sentry_directory_directory_created_notify);
|
||||
|
@ -686,7 +686,7 @@ void eio_test_sentry(TCase *tc)
|
|||
|
||||
tcase_add_test(tc, eio_test_sentry_file_file_modified_notify);
|
||||
tcase_add_test(tc, eio_test_sentry_file_file_attrib_modified_notify);
|
||||
#if !defined(_WIN32) && !defined(__MACH__)
|
||||
#if !defined(__MACH__)
|
||||
tcase_add_test(tc, eio_test_sentry_file_file_closed_notify);
|
||||
#endif
|
||||
#ifndef __MACH__
|
||||
|
|
|
@ -6,6 +6,10 @@
|
|||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
# include <evil_private.h> /* setenv unsetenv */
|
||||
#endif
|
||||
|
||||
#include <Eina.h>
|
||||
#include <Elua.h>
|
||||
|
||||
|
|
|
@ -2,6 +2,10 @@
|
|||
# include <config.h>
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
# include <evil_private.h> /* setenv unsetenv */
|
||||
#endif
|
||||
|
||||
#include "elua_suite.h"
|
||||
#include "../efl_check.h"
|
||||
#include <Elua.h>
|
||||
|
|
|
@ -196,6 +196,8 @@ EFL_END_TEST
|
|||
static void _null_fct(Eo *eo_obj EINA_UNUSED, void *d EINA_UNUSED) { }
|
||||
void null_fct (void) {}
|
||||
|
||||
/* This test is not relevant for WIN32. */
|
||||
#ifndef _WIN32
|
||||
static Eina_Bool
|
||||
_null_class_initializer(Efl_Class *klass)
|
||||
{
|
||||
|
@ -231,6 +233,7 @@ EFL_START_TEST(eo_null_api)
|
|||
|
||||
}
|
||||
EFL_END_TEST
|
||||
#endif
|
||||
|
||||
static Eina_Bool
|
||||
_redefined_class_initializer(Efl_Class *klass)
|
||||
|
|
|
@ -5,6 +5,10 @@
|
|||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
# include <evil_private.h> /* setenv unsetenv */
|
||||
#endif
|
||||
|
||||
#include <Eina.h>
|
||||
#include <Eolian.h>
|
||||
|
||||
|
|
|
@ -12,8 +12,8 @@
|
|||
|
||||
#include <stdio.h>
|
||||
|
||||
#ifndef _WIN32
|
||||
# include <dlfcn.h>
|
||||
#ifdef _WIN32
|
||||
# include <evil_private.h> /* dlopen */
|
||||
#endif
|
||||
|
||||
#define EFL_GFX_FILTER_BETA
|
||||
|
|
|
@ -9,6 +9,10 @@
|
|||
|
||||
#include <stdio.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
# include <evil_private.h> /* setenv */
|
||||
#endif
|
||||
|
||||
#define EFL_GFX_FILTER_BETA
|
||||
|
||||
#include "../../lib/evas/include/evas_common_private.h"
|
||||
|
|
Loading…
Reference in New Issue