Eina value test: disable 64 bits value test on Windows

On Windows, a long is always a 4 bytes type. So the test is
meaningless on Windows
This commit is contained in:
Vincent Torri 2024-01-17 02:29:18 +01:00 committed by Christopher Michael
parent 1226d6caee
commit 204a81e0a3
1 changed files with 12 additions and 0 deletions

View File

@ -93,6 +93,11 @@ EFL_START_TEST(eina_value_test_simple)
fail_unless(l == 0xb33f);
eina_value_flush(value);
/*
* On Windows, long is always a 4 bytes type, so this check
* will never work on Windows.
*/
#ifndef _WIN32
fail_unless(eina_value_setup(value, EINA_VALUE_TYPE_INT64));
fail_unless(eina_value_set(value, 0x0011223344556677));
fail_unless(eina_value_get(value, &i64));
@ -103,6 +108,7 @@ EFL_START_TEST(eina_value_test_simple)
fail_unless(l == (long)0x0011223344556677);
fail_unless(i64 == 0x0011223344556677);
eina_value_flush(value);
#endif
/* unsigned: */
@ -150,6 +156,11 @@ EFL_START_TEST(eina_value_test_simple)
fail_unless(ul == 3000000001UL);
eina_value_flush(value);
/*
* On Windows, long is always a 4 bytes type, so this check
* will never work on Windows.
*/
#ifndef _WIN32
fail_unless(eina_value_setup(value, EINA_VALUE_TYPE_UINT64));
fail_unless(eina_value_set(value, 0x1122334455667788));
fail_unless(eina_value_get(value, &u64));
@ -160,6 +171,7 @@ EFL_START_TEST(eina_value_test_simple)
fail_unless(ul == (unsigned long)0x1122334455667788);
fail_unless(u64 == 0x1122334455667788);
eina_value_flush(value);
#endif
/* floating point */
fail_unless(eina_value_setup(value, EINA_VALUE_TYPE_FLOAT));