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

Unified Diff: tests/skia_test.cpp

Issue 24644003: Add skia_tsan_build to match skia_asan_build and fix one example race. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 3 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 | « gyp/common_variables.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/skia_test.cpp
===================================================================
--- tests/skia_test.cpp (revision 11454)
+++ tests/skia_test.cpp (working copy)
@@ -84,9 +84,9 @@
protected:
virtual void onStart(Test* test) {
- const int index = sk_atomic_inc(&fNextIndex);
- sk_atomic_inc(&fPending);
- SkDebugf("[%3d/%3d] (%d) %s\n", index+1, fTotal, fPending, test->getName());
+ const int index = sk_atomic_inc(&fNextIndex)+1;
+ const int pending = sk_atomic_inc(&fPending)+1;
+ SkDebugf("[%3d/%3d] (%d) %s\n", index, fTotal, pending, test->getName());
}
virtual void onReportFailed(const SkString& desc) {
SkDebugf("\tFAILED: %s\n", desc.c_str());
« no previous file with comments | « gyp/common_variables.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698