-
Notifications
You must be signed in to change notification settings - Fork 237
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
Allow explicit test root #5980
Allow explicit test root #5980
Conversation
This will make slang-test easier to use during development. Thank you for contributing the patch! |
The change seems to break existing tests. |
...and specifically on Windows for some reason. Will take a look at what's going on, thanks for the heads up. |
Head branch was pushed to by a user without write access
Ah, tests are breaking because of an unintentional change in the path separator. I was using |
Intended to address #5979.
From what I can tell, this should be a non-breaking change. The existing tests still run correctly, and I've verified on my computer that I can use an arbitrary test directory with the
-test-dir
option.While attempting to implement this, I did also notice an off-by-one issue with the binary name on Linux. While
_calcExectuablePath
properly null-terminates the program path, it overwrites the final non-null character of the name. This ends up breaking functions likePath::getCanonical
later on, becauseslang-tes
does not exist. If that change should be in a separate PR, please let me know.