Commit Graph

65 Commits

Author SHA1 Message Date
Rémi Bernon 7b0a939a1f mscoree: Fallback to assembly name if codebase path is invalid.
Also use the InprocServer32 key values if there's no subkeys, as shown
by the test results.

L.A.Noire game crashes on startup after failing to load its ErrorHandler
assembly, that has an invalid CodeBase path in the registry.

Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Esme Povirk <esme@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-25 21:00:51 +01:00
Rémi Bernon 6b450f8deb mscoree/tests: Test querying interfaces with generated GUID.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Esme Povirk <esme@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-25 21:00:49 +01:00
Rémi Bernon 7612ff5930 mscoree/tests: Test invalid assembly paths in registry.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Esme Povirk <esme@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-25 21:00:47 +01:00
Francois Gouget a909baeb4e tests: Report all errors when failing to wait for a child process.
Report the line number where the test failed to wait for the child so
one can identify which child process did not behave as expected.
Also wait_child_process() is meant for the general case so report
all non-crash error cases as test failures so they are accounted for.
Omit the "winetest_" prefix to match the other Wine test functions and
so the underlying winetest_wait_child_process() function can be wrapped
with the usual line-capturing macros.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48651
Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-17 10:51:44 +01:00
Rémi Bernon 1117fa68db mscoree/tests: Fix some format-overflow warnings.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-13 19:19:29 +01:00
Alexandre Julliard 32169fb39d mscoree/tests: Get rid of strrchrW().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-26 10:59:43 +01:00
Alexandre Julliard 9c34572155 mscoree/tests: Avoid winetest_strcmpW.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-29 13:57:41 +01:00
Austin English 3c8f70e2c3 mscoree/tests: Mark tests as todo_wine if mono is not available on the current platform.
This allows the tests to pass for me both on arm64 and x86.

Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-23 18:57:50 +02:00
Alexandre Julliard 842d404342 fusion: Build with msvcrt.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-04 19:23:11 +02:00
Fabian Maurer 6428c45667 mscoree: Allow loading of registration free .NET COM objects.
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-04 15:38:47 +01:00
Alexandre Julliard 6427276c27 mscoree/tests: Fix some uninitialized buffers.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-07 21:39:42 +01:00
Fabian Maurer ef19a46161 mscoree: Add test for registration-less COM components.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=43270
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-06 10:42:27 +01:00
Louis Lenders 27f2f4199f mscoree: Add stub for CorIsLatestSvc to hint user at broken .NET installation.
Signed-off-by: Louis Lenders <xerox.xerox2000x@gmail.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-13 17:20:43 +02:00
Jacek Caban 8fff6813b1 mscoree: Added CreateConfigStream implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-28 00:37:20 +02:00
Vincent Povirk 57cdf8bfa8 mscoree: Implement RequestRuntimeLoadedNotification.
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-01 19:21:02 +02:00
Vincent Povirk 870628fd28 mscoree/tests: Loading the runtime works on x86-64 now.
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-29 20:05:01 +09:00
Vincent Povirk b99c35c0e8 mscoree/tests: Check if the runtime is usable before loading it.
Unfortunately, Mono calls exit(1) if it can't load its class libraries,
which is the way Wine fails on x86_64, meaning we have to spawn another
process to check if the runtime works.

Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-23 19:38:36 +09:00
Francois Gouget fb863bc8ac mscoree/tests: Add a trailing '\n' to a win_skip() call.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-22 17:37:11 +09:00
Charles Davis fdeaf812e2 mscoree: Implement ICorRuntimeHost::CreateDomain{, Ex}().
Signed-off-by: Charles Davis <cdavis5x@gmail.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-18 21:05:48 +09:00
Nikolay Sivov a99d8cb21b mscoree: Use E_NOT_SUFFICIENT_BUFFER definition. 2014-10-16 12:58:52 +09:00
Frédéric Delanoy 77c191786a mscoree/tests: Use BOOL type where appropriate. 2014-02-19 11:37:07 +01:00
Vincent Povirk dad9dc941f mscoree/tests: Fix failures when .NET 4 but not 1 or 2 is installed. 2014-02-06 17:08:11 +01:00
Frédéric Delanoy cb71d30c36 mscoree/tests: Use common wine_dbgstr_guid implementation from test.h. 2014-01-29 14:50:50 +01:00
Alexandre Julliard 99ef0d6ff0 makefiles: Get rid of the MAKE_TEST_RULES variable. 2014-01-02 12:13:16 +01:00
André Hentschel dc60ed4596 mscoree/tests: Don't expect a 2.x runtime. 2013-11-13 11:26:09 +01:00
Alistair Leslie-Hughes 73ca9d2d0b mscoree: Partially implement ICLRMetaHost RequestRuntimeLoadedNotification. 2013-10-11 12:45:06 +02:00
Francois Gouget cd35ac901f mscoree/tests: Make test_createinstance() static. 2013-10-07 14:44:36 +02:00
Alistair Leslie-Hughes 7028e2bbbc mscoree: Implement CreateInterface. 2013-10-03 20:08:57 +02:00
Alistair Leslie-Hughes d08e89a8d6 mscoree: Allow capital for version number. 2012-03-27 17:56:31 +02:00
Alistair Leslie-Hughes f67d34f7af mscoree: Better support RUNTIME_INFO_UPGRADE_VERSION in GetRequestedRuntimeInfo. 2012-03-16 13:02:53 +01:00
Francois Gouget 49447ad1d5 include: Fix the metahost.idl import directives. 2011-12-30 12:53:42 +01:00
Alistair Leslie-Hughes 7ee1250e46 mscoree: Implement ICorDebug EnumerateProcesses. 2011-11-01 16:43:08 +01:00
Alistair Leslie-Hughes 5682743245 mscoree: Implement ICorDebug SetManagedHandler. 2011-10-10 13:46:36 +02:00
Alistair Leslie-Hughes bef72c4884 mscoree: Add ICorDebug interface support. 2011-09-28 12:37:47 +02:00
Frédéric Delanoy 760faf01a9 tests: Assorted spelling fixes. 2011-08-04 18:27:37 +02:00
André Hentschel 53218eb50b mscoree/tests: Mark a weird w2k3 result as broken. 2011-06-08 14:12:41 +02:00
André Hentschel 2061c61c4e mscoree/tests: Test more IStream Functions on a ConfigStream. 2011-06-06 21:49:20 +02:00
André Hentschel 79a5153366 mscoree/tests: Broken return value is a HRESULT_FROM_WIN32. 2011-06-06 21:49:20 +02:00
André Hentschel b426a9a084 mscoree/tests: Fix for the results in CreateConfigStream tests. 2011-05-24 12:19:09 +02:00
André Hentschel 1aacc5fc40 mscoree/tests: Add tests for CreateConfigStream. 2011-05-17 11:48:14 +02:00
Francois Gouget 2bce427392 mscoree/tests: Make init_pointers() static. 2011-03-30 18:23:37 +02:00
Francois Gouget 3b69102011 mscoree/tests: Make the test and cleanup functions static. 2011-03-16 14:14:24 +01:00
Austin English cccc36e25a mscoree/tests: Fix a broken test (LLVM/Clang). 2010-12-23 13:47:25 +01:00
Paul Vriens d360b6f913 mscoree/tests: Remove an unneeded test. 2010-11-23 14:18:44 +01:00
Paul Vriens 759f12c187 mscoree/tests: Use more A-functions to fix test failures on Win9x. 2010-11-23 14:18:33 +01:00
Paul Vriens 167ab75f4e mscoree/tests: Use StrStrIW from shlwapi. 2010-11-23 14:18:22 +01:00
Paul Vriens dff72b0c66 mscoree/tests: Use the correct wide string compare to cope with Win9x. 2010-11-23 14:18:01 +01:00
Vincent Povirk 84ef0fca57 mscoree: Use the new search methods for GetCORVersion/GetCORSystemDirectory. 2010-11-09 17:33:32 +01:00
Vincent Povirk 1682a92dd5 mscoree: Implement LoadLibraryShim. 2010-10-28 18:18:11 +02:00
Vincent Povirk a96941a3bf mscoree: Add tests for LoadLibraryShim. 2010-10-28 18:18:09 +02:00