-
-
Notifications
You must be signed in to change notification settings - Fork 228
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
Fix failure of test suite on POSIX #2648
Conversation
✅ PR OK, no changes in deprecations or warnings Total deprecations: 15 Total warnings: 0 Build statistics: statistics (-before, +after)
executable size=5284832 bin/dub
rough build time=76s Full build output
|
failure due to change of escaping of posix paths in phobos
What is the DMD change? |
|
||
function escaped { | ||
if [ $escape -eq 1 ]; then | ||
echo -n "'$1'" |
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.
I think printf -- '%q' "$1"
is both more correct and more portable.
Not DMD, phobos actually. |
Ah, I see. So, I think the problem is then that the Dub test suite depends on the exact algorithm that Phobos uses for escaping shell parameters. If possible, I think it would better to turn this around, and parse the quoted arguments into an array using the shell and then comparing that. |
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.
this runs in CI and passes on mac and linux, let's just pull it in like this
a better fix can be made in the future
Fixing annoying failure of test suite on POSIX systems with recent DMD versions