Hi, E-devel
I made a eina patch for cygwin-1.7 (not cygwin-1.5).
However eina_bench aborts as follows:
% ./autogen.sh --enable-tests --enable-benchmark --enable-e17
% make
% make install
% /path/to/install/eina_bench.exe test
(....snip....)
Run array-inline: 3500
Run array-inline: 3600
Run array-inline: 3700
Run array-inline: 3800
Run array-inline: 3900
Run array-iterator: 200
[eina_iterator.c:163] eina_iterator_foreach() *** Eina Magic Check
Failed !!!
Input handle pointer is NULL !
*** NAUGHTY PROGRAMMER!!!
*** SPANK SPANK SPANK!!!
*** Now go fix your code. Tut tut tut!
[eina_iterator.c:164] eina_iterator_foreach() safety check failed:
iterator == NULL
[eina_iterator.c:96] eina_iterator_free() *** Eina Magic Check Failed !!!
Input handle pointer is NULL !
*** NAUGHTY PROGRAMMER!!!
*** SPANK SPANK SPANK!!!
*** Now go fix your code. Tut tut tut!
[eina_iterator.c:97] eina_iterator_free() safety check failed: iterator
== NULL
Run array-iterator: 300
[eina_iterator.c:163] eina_iterator_foreach() *** Eina Magic Check
Failed !!!
Input handle pointer is NULL !
*** NAUGHTY PROGRAMMER!!!
*** SPANK SPANK SPANK!!!
*** Now go fix your code. Tut tut tut!
[eina_iterator.c:164] eina_iterator_foreach() safety check failed:
iterator == NULL
[eina_iterator.c:96] eina_iterator_free() *** Eina Magic Check Failed !!!
Input handle pointer is NULL !
*** NAUGHTY PROGRAMMER!!!
*** SPANK SPANK SPANK!!!
*** Now go fix your code. Tut tut tut!
[eina_iterator.c:97] eina_iterator_free() safety check failed: iterator
== NULL
(....snip....)
Run array-iterator: 3900
[eina_iterator.c:163] eina_iterator_foreach() *** Eina Magic Check
Failed !!!
Input handle pointer is NULL !
*** NAUGHTY PROGRAMMER!!!
*** SPANK SPANK SPANK!!!
*** Now go fix your code. Tut tut tut!
[eina_iterator.c:164] eina_iterator_foreach() safety check failed:
iterator == NULL
[eina_iterator.c:96] eina_iterator_free() *** Eina Magic Check Failed !!!
Input handle pointer is NULL !
*** NAUGHTY PROGRAMMER!!!
*** SPANK SPANK SPANK!!!
*** Now go fix your code. Tut tut tut!
[eina_iterator.c:97] eina_iterator_free() safety check failed: iterator
== NULL
Run list: 200
[eina_list.c:439] eina_list_init() ERROR: Mempool for list cannot be
allocated in list init.
Aborted (core dumped)
%
Is this behavior correct?
Best regards
Index: src/tests/eina_bench.c
===================================================================
--- src/tests/eina_bench.c (revision 39273)
+++ src/tests/eina_bench.c (working copy)
@@ -52,7 +52,7 @@
{
eina_mempool_init();
/* force modules to be loaded in case they are not installed */
- _modules = eina_module_list_get(PACKAGE_BUILD_DIR"/src/modules", 1, NULL,
NULL);
+ _modules = eina_module_list_get(NULL, PACKAGE_BUILD_DIR"/src/modules", 1,
NULL, NULL);
eina_module_list_load(_modules);
}
Index: src/tests/eina_bench_stringshare_e17.c
===================================================================
--- src/tests/eina_bench_stringshare_e17.c (revision 39273)
+++ src/tests/eina_bench_stringshare_e17.c (working copy)
@@ -110,7 +110,7 @@
eina_counter_stop(cnt, 1);
fprintf(stderr, "For `%s`:\n", str->name);
- eina_counter_dump(cnt, stderr);
+ eina_counter_dump(cnt);
eina_counter_delete(cnt);
}
Index: configure.ac
===================================================================
--- configure.ac (revision 39273)
+++ configure.ac (working copy)
@@ -302,6 +302,9 @@
*darwin*)
EINA_LIBS="${EINA_LIBS} -lm"
;;
+ *cygwin*)
+ EINA_LIBS="${EINA_LIBS} -ldl -lm"
+ ;;
*)
EINA_LIBS="${EINA_LIBS} -ldl -lrt -lm"
;;
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel