https://bugs.winehq.org/show_bug.cgi?id=39212
Bug ID: 39212 Summary: cmd:batch fails if privileges not high enough Product: Wine Version: unspecified Hardware: x86 OS: Windows Status: NEW Severity: normal Priority: P2 Component: cmd Assignee: wine-bugs@winehq.org Reporter: fgouget@codeweavers.com
The following failures only happen if the test is run in a regular user account rather and an administrator account.
batch.c:312: Test failed: unexpected char 0x2b position 0 in line 1143 (got '+++', wanted '.foo=bar') batch.c:312: Test failed: unexpected char 0x2d position 0 in line 1144 (got '--- resetting association', wanted '.foo=bar') batch.c:312: Test failed: unexpected char 0x2d position 0 in line 1145 (got '--- resetting association', wanted '+++') batch.c:312: Test failed: unexpected char 0x2d position 0 in line 1146 (got '--- resetting association', wanted '.foo=bar') batch.c:312: Test failed: unexpected char 0x2b position 0 in line 1154 (got '+++', wanted 'footype=foo_opencmd') batch.c:312: Test failed: unexpected char 0x2d position 0 in line 1155 (got '--- resetting association', wanted '.foo=footype') batch.c:312: Test failed: unexpected char 0x2d position 0 in line 1156 (got '--- resetting association', wanted 'footype=foo_opencmd') batch.c:312: Test failed: unexpected char 0x2d position 0 in line 1157 (got '--- resetting association', wanted '+++') batch.c:312: Test failed: unexpected char 0x2d position 0 in line 1158 (got '--- resetting association', wanted 'footype=foo_opencmd')
This is most likely because the privileges are insufficient for the 'assoc .foo=bar' command despite the check at the start of the 'Testing assoc' section.
Currently these test failures happen on the following WineTest boxes: fg-win2000-rusr, fg-winxp-lusr, fg-win7u64-1spie9usr. https://test.winehq.org/data/tests/cmd.exe:batch.html