]> git.ipfire.org Git - thirdparty/libtool.git/commit
Report proper errors from the loadlibrary loader.
authorPeter Rosin <peda@lysator.liu.se>
Thu, 21 Jan 2010 07:42:12 +0000 (08:42 +0100)
committerPeter Rosin <peda@lysator.liu.se>
Thu, 21 Jan 2010 07:42:12 +0000 (08:42 +0100)
commit080e088e42e230d458e18073fef82b6eab01837f
tree90485a13bc4d059a9828823fe00ab3a68a53897a
parent16362c656aac5daf7337f2ed27aae1fe4838d03a
Report proper errors from the loadlibrary loader.

* libltdl/loaders/loadlibrary.c (loadlibraryerror): New
helper function that returns the latest Windows error as a
string, or the provided default string on failure to do so.
(LOADLIB_SETERROR): New macro that wraps previous to make it
easy to use.
(vm_open, vm_close, vm_sym): Make use of previous.
(LOCALFREE): New macro to help free the Windows error string.
(vl_exit): Make use of previous.
* tests/loadlibarry.at: New file, new test that makes sure
the loadlibrary loader reports non-standard error messages.
* Makefile.am (TESTSUITE_AT): Add above test.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
ChangeLog
Makefile.am
libltdl/loaders/loadlibrary.c
tests/loadlibrary.at [new file with mode: 0644]