Issue26

Title Exit code from executed progam under Windows is always lost
Priority bug Status chatting
Superseder Nosy List kayhayen
Assigned To kayhayen Keywords windows, wrong_execution

Created on 2012-01-15.10:03:32 by kayhayen, last changed by kayhayen.

Messages
msg63 (view) Author: kayhayen Date: 2012-01-22.17:18:56
It seems Windows has no "exec", so it needs to be decided if on that platform we 
need to spawn and wait for exit, possibly closing down on memory as much as 
possible.
msg62 (view) Author: kayhayen Date: 2012-01-17.06:39:43
As a workaround, "compare_with_cpython" now supports a mode 
"two_step_execution", which doesn't use the "--execute" feature, but does it 
manually. On Windows, this mode is becoming the default.

The MinGW bug was raises as http://sourceforge.net/tracker/?
func=detail&aid=3474316&group_id=2435&atid=102435

But it appears, it may not receive a solution soon, so this workaround will do 
for now.
msg61 (view) Author: kayhayen Date: 2012-01-16.06:17:44
Seems to be reproducible for "execl" with latest MinGW. Bug raised.
msg60 (view) Author: kayhayen Date: 2012-01-15.22:34:19
It is reproducible for "os.execl" to do this already. Should be an upstream bug 
then.
msg59 (view) Author: kayhayen Date: 2012-01-15.10:03:32
When executing programs under Windows (not wine), their exit codes get lost. It 
is only due to the recent additions of checking exit codes, that this becomes 
noticable.

Should be reproducable with 0.3.18.2 which has other issues corrected that 
prevent tests from progressing as far.

python.exe misc\check-release

at the end it is this test:

tests\syntax\RelativeNonPackageImport.py

which raises an exception as expected, but then exit code is "0", while there is 
a "return 1" in the code. I have verified that the "return 1" becomes executed 
and yet the code is still "0". Running the test on wine (--windows-target) works 
fine, exit code is correct there.
History
Date User Action Args
2012-01-22 17:18:56kayhayensetstatus: done-cbb -> chatting
messages: + msg63
2012-01-17 06:39:43kayhayensetstatus: chatting -> done-cbb
assignedto: kayhayen
messages: + msg62
keyword: - help_wanted
2012-01-16 06:17:44kayhayensetmessages: + msg61
2012-01-15 22:34:19kayhayensetmessages: + msg60
2012-01-15 10:03:32kayhayencreate