+
+ // NOTE: under Windows the first wxKill() invocation with wxSIGTERM
+ // may fail if the system is fast and the ASYNC_COMMAND app
+ // doesn't manage to create its HWND before our wxKill() is
+ // executed; in that case we "fall back" to the second invocation
+ // with wxSIGKILL (which should always succeed)
+ CPPUNIT_ASSERT( wxKill(pid, wxSIGTERM) == 0 ||
+ wxKill(pid, wxSIGKILL) == 0 );