stefan pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=fbd3bc626216694a1eb43bbe0462692c56b5b82e

commit fbd3bc626216694a1eb43bbe0462692c56b5b82e
Author: Vincent Torri <[email protected]>
Date:   Tue Jun 16 21:47:43 2020 +0000

    tests: eina: fix ENOMEM message on Windows and solaris
    
    On Windows and solaris the string associated to ENOMEM is "Not enough space"
    
    Reviewed-by: João Paulo Taylor Ienczak Zanette 
<[email protected]>
    Reviewed-by: Stefan Schmidt <[email protected]>
    Differential Revision: https://phab.enlightenment.org/D11983
---
 src/tests/eina/eina_test_error.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/tests/eina/eina_test_error.c b/src/tests/eina/eina_test_error.c
index 7c6d25b3c4..729f71e103 100644
--- a/src/tests/eina/eina_test_error.c
+++ b/src/tests/eina/eina_test_error.c
@@ -221,7 +221,11 @@ EFL_START_TEST(eina_error_test_failures)
    fail_unless(ctx.did);
 
    ck_assert_str_eq(eina_error_msg_get(ENOMEM),
+#if defined(_WIN32) || defined(__sun)
+                    "Not enough space");
+#else
                     "Cannot allocate memory");
+#endif
 
    TEST_MAGIC_SAFETY("eina_error_find",
                      "safety check failed: msg == NULL");

-- 


Reply via email to