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 <joao.tiz@expertisesolutions.com.br>
Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org>
Differential Revision: https://phab.enlightenment.org/D11983
This commit is contained in:
Vincent Torri 2020-06-16 21:47:43 +00:00 committed by Stefan Schmidt
parent 047872e7cc
commit fbd3bc6262
1 changed files with 4 additions and 0 deletions

View File

@ -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");