Without this patch, clang-repl incorrectly pass some tests when there's
error occured.
Signed-off-by: Jun Zhang <jun@junz.org>
Differential D130422
[clang-repl] Fix incorrect return code junaire on Jul 23 2022, 6:22 AM. Authored by
Details
Without this patch, clang-repl incorrectly pass some tests when there's Signed-off-by: Jun Zhang <jun@junz.org>
Diff Detail
Event Timeline
Comment Actions Thanks for working on this. This is one of the problems where is hard to find the right behavior. For example, if a repl running in interactive issues an error and then successfully recovers what's the right process return code success or a failure? If we decide it is a success then if we ran in non-interactive mode eg clang-repl "err" then the exit code should be a failure. Either way, this patch improves our current state in which we cannot detect failing tests in -verify mode. Let's accept it. Comment Actions @v.g.vassilev if you can take another look at the wording of the FIXME, and make sure you're happy about it, that will be awesome.
|
Why this is marked as XFAIL? If it is only for the return code we can add the not command in front to make the error code succeed.