aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/actions/UserExecException.java
diff options
context:
space:
mode:
authorGravatar Damien Martin-Guillerez <dmarting@google.com>2015-09-08 08:35:16 +0000
committerGravatar Damien Martin-Guillerez <dmarting@google.com>2015-09-08 09:09:02 +0000
commit95ef61d06401800bdcee2d9d2240f6bf7d553f28 (patch)
treebe3d802aabec58e7995cb4818486425b40179ff3 /src/main/java/com/google/devtools/build/lib/actions/UserExecException.java
parent34bfb8c9a06cacfcbb4f009765645978a514bb91 (diff)
Display TIMEOUT for test that times out
Previously the timing out information wasn't propagated to the user, leading to a wrong FAILED message whereas the test was timing out. -- MOS_MIGRATED_REVID=102535481
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/actions/UserExecException.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/actions/UserExecException.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/actions/UserExecException.java b/src/main/java/com/google/devtools/build/lib/actions/UserExecException.java
index 86a6eb008c..15cdb887ce 100644
--- a/src/main/java/com/google/devtools/build/lib/actions/UserExecException.java
+++ b/src/main/java/com/google/devtools/build/lib/actions/UserExecException.java
@@ -24,10 +24,18 @@ public class UserExecException extends ExecException {
super(message);
}
+ public UserExecException(String message, boolean timedOut) {
+ super(message, false, timedOut);
+ }
+
public UserExecException(String message, Throwable cause) {
super(message, cause);
}
+ public UserExecException(String message, Throwable cause, boolean timedOut) {
+ super(message, cause, false, timedOut);
+ }
+
@Override
public ActionExecutionException toActionExecutionException(String messagePrefix,
boolean verboseFailures, Action action) {