This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository efl.

View the commit online.

commit 97845c1ee37e2025cd300ad1a449f0b7ff0dd355
Author: Vincent Torri <vto...@outlook.fr>
AuthorDate: Wed Jan 17 02:29:18 2024 +0100

    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
---
 src/tests/eina/eina_test_value.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/src/tests/eina/eina_test_value.c b/src/tests/eina/eina_test_value.c
index 7d9e27e29a..91399a2aa3 100644
--- a/src/tests/eina/eina_test_value.c
+++ b/src/tests/eina/eina_test_value.c
@@ -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));

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to