Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Unified Diff: client/deps/glbench/src/teartest.cc

Issue 2031007: Do not ask user to press Fail button if pixmap to texture test fails because GLX is older than 1.3. (Closed) Base URL: ssh://git@chromiumos-git//autotest.git
Patch Set: Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | client/deps/glbench/src/teartest_glx.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/deps/glbench/src/teartest.cc
diff --git a/client/deps/glbench/src/teartest.cc b/client/deps/glbench/src/teartest.cc
index b8e4677e763dbe6a093f3a96c8200164fcdfef0b..d801d554adea9b994d996ddc9b3789eac951c4a6 100644
--- a/client/deps/glbench/src/teartest.cc
+++ b/client/deps/glbench/src/teartest.cc
@@ -215,13 +215,16 @@ int main(int argc, char* argv[]) {
std::vector<std::string> tests;
SplitString(FLAGS_tests, ',', &tests);
+ int return_code = 0;
for (std::vector<std::string>::iterator it = tests.begin();
it != tests.end();
it++)
{
Test* t = test_map[*it];
- if (!t || !t->Start())
+ if (!t || !t->Start()) {
+ return_code = 1;
continue;
+ }
Bool got_event = False;
uint64_t wait_until = GetUTime() + 1000000ULL * FLAGS_seconds_to_run;
@@ -253,5 +256,5 @@ int main(int argc, char* argv[]) {
glDeleteTextures(1, &texture);
DestroyContext();
- return 0;
+ return return_code;
}
« no previous file with comments | « no previous file | client/deps/glbench/src/teartest_glx.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698