-
Notifications
You must be signed in to change notification settings - Fork 15.2k
[not] Update disable-symbolization.test to work with internal shell #157236
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
[not] Update disable-symbolization.test to work with internal shell #157236
Conversation
Created using spr 1.3.6 [skip ci]
Created using spr 1.3.6
Should we update the lit implementation handling for |
Created using spr 1.3.6 [skip ci]
Created using spr 1.3.6 [skip ci]
We theoretically can, but it's not that simple. The test runner already explicitly reorders them due to how llvm-project/llvm/utils/lit/lit/TestRunner.py Line 851 in d2646ca
|
Created using spr 1.3.6 [skip ci]
Created using spr 1.3.6 [skip ci]
Created using spr 1.3.6 [skip ci]
This test is a special case as it executes two commands that are special cased in the internal shell implementation. env runs entirely inside the internal shell whereas not is handled specially, but still executed externally. The internal shell does reorder execution of these though, putting env commands before not which means we do not pick up environment variables set by not. These complications make it easier to just ensure that we invoke the actual env binary (by calling it through bash) rather than using the internal shell implementation. Fixes llvm#106627 by fixing the test, but without fixing the redirection issue given the complexity does not seem justified. Pull Request: llvm#157236
…nal shell This test is a special case as it executes two commands that are special cased in the internal shell implementation. env runs entirely inside the internal shell whereas not is handled specially, but still executed externally. The internal shell does reorder execution of these though, putting env commands before not which means we do not pick up environment variables set by not. These complications make it easier to just ensure that we invoke the actual env binary (by calling it through bash) rather than using the internal shell implementation. Fixes #106627 by fixing the test, but without fixing the redirection issue given the complexity does not seem justified. Reviewers: ilovepi, MaskRay, petrhosek Reviewed By: MaskRay Pull Request: llvm/llvm-project#157236
This test is a special case as it executes two commands that are special
cased in the internal shell implementation. env runs entirely inside the
internal shell whereas not is handled specially, but still executed
externally. The internal shell does reorder execution of these though,
putting env commands before not which means we do not pick up
environment variables set by not.
These complications make it easier to just ensure that we invoke the
actual env binary (by calling it through bash) rather than using the
internal shell implementation.
Fixes #106627 by fixing the test, but without fixing the redirection
issue given the complexity does not seem justified.