[Bug 52761] mscoree:mscoree test fails without a display or console

WineHQ Bugzilla wine-bugs at winehq.org
Tue Apr 5 02:35:29 CDT 2022


https://bugs.winehq.org/show_bug.cgi?id=52761

--- Comment #25 from Eric Pouech <eric.pouech at orange.fr> ---
- with the attached patch, I'm able locally to run the mscoree tests with
./wine mscoree_test.exe mscoree -o log2 </dev/null >& log, and without
additional consoles being created. the log2 file show no 'test' errors, even if
log contains lots of 

Unhandled Exception:
System.IO.FileNotFoundException: Could not load file or assembly 'libloadpaths,
Version=0.0.0.0, Culture=en, PublicKeyToken=null' or one of its dependencies.^M
File name: 'libloadpaths, Version=0.0.0.0, Culture=en, PublicKeyToken=null'
[ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileNotFoundException: Could not
load file or assembly 'libloadpaths, Version=0.0.0.0, Culture=en,
PublicKeyToken=null' or one of its dependencies.^M

(not sure if it's expected or not)

- unsetting DISPLAY will not work as some other processes launched during
startup require creating a window (and it's not conhost)

- note: the patch tackles two issues:
  + because you redirect also stdin to /dev/null...
  + because in here:
https://github.com/madewokherd/wine-mono/blob/develop/tools/csc-wrapper/csc-wrapper.cs#L49
    the use of 'process.StartInfo.CreateNoWindow = true;'
    asks for the creation of the console which is not seen, and which may
require your stream reader stuff to copy again the information...

so could you, separately,
- test in csc wrapper, what gives the suppression of CreateNoWindow flag (it
may be you could get rid of the stream copy bits)
- test if the patch I attached helps in your integration (and without the
patches you sent yesterday, they shouldn't be needed IMO)

in reply to #19: running wine ... >& log < /dev/null (or without the <
/dev/null part) should redirect all output of ... and all the subprocesses into
log, unless for the subprocesses created with DETACHED_PROCESS,
CREATE_NO_WINDOW or CREATE_NEW_WINDOW flag...
so in theory, with the attached patch + removal of CreateNoWindow in csc
wrapper, you should be able to capture all output... (famous last words <g>)

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list