-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
t0061: fix test for argv[0] with spaces (MINGW only) #356
Conversation
@dscho thanks for the pointer about gcc build! Didn't realize that default makefile doesn't use VS at all. I have updated the commit message; does that look good now? |
This PR is continuation of git#651 which I have created on wrong repo by mistake. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for cleaning up my mess! I offered a couple suggestions I hope you agree with. If not, this is already good to go onto the Git mailing list.
The test was originally designed for the case where user reported that setting GIT_SSH to a .bat file with spaces in path fails on Windows: git-for-windows#692 The test has two different problems: 1. It succeeds with AND without fix eb7c786 that addressed user's problem. This happens because the core problem was misunderstood, leading to conclusion that git is unable to start any programs with spaces in path on Win7. But in fact a) Bug only affected cmd.exe scripts, such as .bat scripts b) Bug only happened when cmd.exe received at least two quoted args c) Bug happened on any Windows (verified on Win10). Therefore, correct test must involve .bat script and two quoted args. 2. In Visual Studio build, it fails to run, because 'test-fake-ssh.exe' is copied away from its dependencies 'libiconv.dll' and 'zlib1.dll'. Fix both problems by using .bat script instead of 'test-fake-ssh.exe'. NOTE: With this change, the test now correctly fails without eb7c786. Signed-off-by: Alexandr Miloslavskiy <[email protected]>
1921cf9
to
ab81cee
Compare
OK, I have updated the patch. Different code style preferences, I guess. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
/submit |
Submitted as [email protected] |
This branch is now known as |
This patch series was integrated into pu via git@e73c6f3. |
This patch series was integrated into pu via git@e698a13. |
This patch series was integrated into pu via git@0f47be2. |
This patch series was integrated into pu via git@661c071. |
This patch series was integrated into next via git@0fdb87d. |
This patch series was integrated into pu via git@4487d83. |
This patch series was integrated into pu via git@b6d1e92. |
This patch series was integrated into pu via git@df1c917. |
This patch series was integrated into pu via git@cdadaa3. |
This patch series was integrated into pu via git@424663d. |
This patch series was integrated into next via git@424663d. |
This patch series was integrated into master via git@424663d. |
Closed via 424663d. |
The test was originally designed for the case where user reported
that setting GIT_SSH to a .bat file with spaces in path fails on
Windows: git-for-windows#692
The test has two different problems:
problem. This happens because the core problem was misunderstood,
leading to conclusion that git is unable to start any programs with
spaces in path on Win7. But in fact
a) Bug only affected cmd.exe scripts, such as .bat scripts
b) Bug only happened when cmd.exe received at least two quoted args
c) Bug happened on any Windows (verified on Win10).
Therefore, correct test must involve .bat script and two quoted args.
is copied away from its dependencies 'libiconv.dll' and 'zlib1.dll'.
Fix both problems by using .bat script instead of 'test-fake-ssh.exe'.
NOTE: With this change, the test now correctly fails without eb7c786.
Signed-off-by: Alexandr Miloslavskiy [email protected]