summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2020-06-16 21:47:43 +0000
committerStefan Schmidt <s.schmidt@samsung.com>2020-06-18 13:45:09 +0200
commitfbd3bc626216694a1eb43bbe0462692c56b5b82e (patch)
tree6446627b0ae65b533ee09c387f490b9d216a3f23
parent047872e7cc7f2f8fb2d7473be622d7aab799ed2d (diff)
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
-rw-r--r--src/tests/eina/eina_test_error.c4
1 files changed, 4 insertions, 0 deletions
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)
221 fail_unless(ctx.did); 221 fail_unless(ctx.did);
222 222
223 ck_assert_str_eq(eina_error_msg_get(ENOMEM), 223 ck_assert_str_eq(eina_error_msg_get(ENOMEM),
224#if defined(_WIN32) || defined(__sun)
225 "Not enough space");
226#else
224 "Cannot allocate memory"); 227 "Cannot allocate memory");
228#endif
225 229
226 TEST_MAGIC_SAFETY("eina_error_find", 230 TEST_MAGIC_SAFETY("eina_error_find",
227 "safety check failed: msg == NULL"); 231 "safety check failed: msg == NULL");