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
https://bugs.winehq.org/show_bug.cgi?id=39212
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source, testcase
--- Comment #1 from François Gouget fgouget@codeweavers.com --- This test regression was introduced by the commit that added these tests:
commit c08459d0be88b1663c9823b2fd57e6d0e891b242 Author: Frédéric Delanoy frederic.delanoy@gmail.com Date: Mon Aug 29 21:45:16 2011 +0200
cmd/tests: Add assoc tests.
https://bugs.winehq.org/show_bug.cgi?id=39212
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|wine-bugs@winehq.org |fgouget@codeweavers.com
https://bugs.winehq.org/show_bug.cgi?id=39212
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch
--- Comment #2 from François Gouget fgouget@codeweavers.com --- I sent a patch for this: https://www.winehq.org/pipermail/wine-patches/2015-November/144654.html
https://bugs.winehq.org/show_bug.cgi?id=39212
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |9dee791516284ded1808ba133a6 | |3385f38cfafb5 Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #3 from François Gouget fgouget@codeweavers.com --- The patch was applied so I think this is fixed.
https://bugs.winehq.org/show_bug.cgi?id=39212
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #4 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.8-rc1.