Index: sandbox/linux/tests/unit_tests.cc |
diff --git a/sandbox/linux/tests/unit_tests.cc b/sandbox/linux/tests/unit_tests.cc |
index 4973c41fbdcd1f8c4ea0f452cfb0541c38d9aeb4..7ea28156f979062f742793a57a68ba5250e753a4 100644 |
--- a/sandbox/linux/tests/unit_tests.cc |
+++ b/sandbox/linux/tests/unit_tests.cc |
@@ -31,8 +31,15 @@ std::string TestFailedMessage(const std::string& msg) { |
} |
int GetSubProcessTimeoutTimeInSeconds() { |
- // Previously 10s, but that timed out (just) on Chromecast. |
- return 12; |
+#ifdef NDEBUG |
+ // Chromecast build lab devices need this much time to complete. |
+ // They only run in release. |
+ return 30; |
+#else |
+ // Want a shorter timeout than test runner to get a useful callstack |
+ // in debug. |
+ return 10; |
+#endif |
} |
// Returns the number of threads of the current process or -1. |