Index: client/deps/glbench/src/testbase.cc |
diff --git a/client/deps/glbench/src/testbase.cc b/client/deps/glbench/src/testbase.cc |
index 48a2fc4df91386b6e6bf8640e08e387068b54c25..ef138fe7c6b1f448369df8ce19062b708ed3460d 100644 |
--- a/client/deps/glbench/src/testbase.cc |
+++ b/client/deps/glbench/src/testbase.cc |
@@ -12,7 +12,8 @@ uint64_t TimeTest(TestBase* test, int iter) { |
SwapBuffers(); |
glFinish(); |
uint64_t time1 = GetUTime(); |
- test->TestFunc(iter); |
+ if (!test->TestFunc(iter)) |
+ return ~0; |
glFinish(); |
uint64_t time2 = GetUTime(); |
return time2 - time1; |