-
Notifications
You must be signed in to change notification settings - Fork 89
7904083: Print fatal error messages to stderr #290
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
base: master
Are you sure you want to change the base?
Conversation
|
👋 Welcome back syan! A progress list of the required criteria for merging this PR into |
|
❗ This change is not yet ready to be integrated. |
|
Hello @sendaoYan, can you add some more details about what prompted this change? I can understand that printing an error to stderr would seem more logical. However, given that it has been this way forever, if there is no strong reason for changing this, then I think it would be better to leave this as-is. |
Hi @jaikiran I want to make this change because I want to use jtreg -version to check if the current jtreg command works properly. Therefore, I'll use the following code to perform a check. If all is well, I'll proceed with the script. The check script is as follows. Why is stdout redirected to /dev/null? In this case, we're not interested in the jtreg version number; we're only interested in the error message when jtreg -version fails to start properly. Currently, all normal and abnormal logs are output to stdout, so it's impossible to disable only the normal version output. if ! jtreg -version > /dev/null ; then
echo jtreg -version check fail! >&2
exit 1
fi
Do the following...Such as running the specific jtreg tests. |
|
@sendaoYan This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply issue a |
|
/touch |
|
@sendaoYan The pull request is being re-evaluated and the inactivity timeout has been reset. |
Hi all,
Currently the fatal error message was print to stderr, shows as below. I think it's bettor to print the fatal error message to stderr.
The
>&2usage for echo both works on linux and cygwin. I do not have other OS system to verify this change, but I think the risk of this change is low.Progress
Issue
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jtreg.git pull/290/head:pull/290$ git checkout pull/290Update a local copy of the PR:
$ git checkout pull/290$ git pull https://git.openjdk.org/jtreg.git pull/290/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 290View PR using the GUI difftool:
$ git pr show -t 290Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jtreg/pull/290.diff
Using Webrev
Link to Webrev Comment