• Eric Pouech's avatar
    kernel32/tests: Fix debugger.c:test_kill_on_exit(). · 53fc157f
    Eric Pouech authored
    As background information from Windows testings:
    - the debug port event is closed upon thread regular exit.
    - results are however inconsistent across Windows versions for forced
      termination (through TerminateThread and equiv).
    - this is moreover crippled by most of the 32bit implementation on Windows
      (except Win8) which don't enforce the close on exit flag for wow64 debuggee:s
      (they enforce it for 64bit though)
    - but, in the cases where the debuggee terminates, the debug port is
      always closed *after* the debuggee process termination.
    
    So I adapted the tests to conform to "debug port is closed" when handling
    the thread termination. Some tests had to be moved *after* debuggee
    termination to ensure success.
    
    Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53144Signed-off-by: 's avatarEric Pouech <eric.pouech@gmail.com>
    53fc157f
debugger.c 90.7 KB