-
Notifications
You must be signed in to change notification settings - Fork 350
[Fortran/gfortran] Add a simple not tool to the test suite #60
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
Conversation
Thanks for working on this! I'll have a look next week. |
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.
LGTM, thanks!
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 can't speak to any of the Windows stuff, but it mostly LGTM! I just had one question about how you invoke std::system
.
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 will defer to @yi-wu-arm
Otherwise, LGTM
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.
Thanks for addressing all my comment! I may have over-complicate this stuff.
Add a tool similar to LLVM's not utility which inverts the return code of a command. The major difference is that the utility is not dependent on LLVM's libraries and performs less error checking than LLVM's not. It supports the --crash option when the command is expected to crash. The tests in Fortran/gfortran have been updated to use this.
75e700a
to
51262d9
Compare
Add a tool very similar to LLVM's not utility which inverts the return code of a command. The major difference is that the utility is not dependent on LLVM's libraries and performs less error checking than LLVM's not. It does support the
--crash option when the command is expected to crash.
There is a need for something similar to the
not
utility in the gfortran test suite where some tests are expected to crash. However, we cannot rely on the utility being available since the LLVM build directory may not be available when running the test suite. Unless LLVM was built with-DLLVM_INSTALL_UTILS=On
, the utilities will not be available even if clang/flang are present.In keeping with some of the other tools in the test suite which were borrowed from LLVM, this has been stripped down and made independent of LLVM's libraries.