http://bugs.winehq.org/show_bug.cgi?id=21227
--- Comment #8 from Jason Edmeades us@edmeades.me.uk 2012-08-29 18:40:28 CDT --- Created attachment 41528 --> http://bugs.winehq.org/attachment.cgi?id=41528 Sample tests for some of the issues reported here
Attached is a small test case that exercises some of the issues in here in a step by step progression. Expected results (on windows 7!) were: PASSED1 PASSED2 PASSED3 expected missing test 4 PASSED5 PASSED6 PASSED7
On wcmd (compiled/running on windows so dont trust these results completely): PASSED3 FAILED4 expected missing test 4 PASSED5 PASSED7 and a file leak on failed.txt
I dont have Linux / much time either so cant convert this into the test suite, but I think it highlights the key issues here (I think one of the key problems is around passing the redirs through continually, rather than acting on them straight away and relying on the handles staying set).