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

Issue 1915693002: Change the code to avoid three unit test failures on release build (Closed)

Created:
4 years, 8 months ago by Wei Li
Modified:
4 years, 8 months ago
Reviewers:
Lei Zhang, dsinclair
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Change the code to avoid three unit test failures on release build We have three failed unit tests -- FX_AllocOverflow(), FX_AllocOverflow2D(), and FX_TryAllocOverflow() on Linux and Mac release builds, because Clang aggressively optimizes the code. Adding some usage of the return value of a function can avoid the function being optimized away by Clang. Committed: https://pdfium.googlesource.com/pdfium/+/14f5aeb5a46f330bd9386cd698fa25da3775d909

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -6 lines) Patch
M core/fxcrt/fx_basic_memmgr_unittest.cpp View 2 chunks +16 lines, -6 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 9 (5 generated)
Wei Li
PTAL, thanks
4 years, 8 months ago (2016-04-22 21:53:45 UTC) #4
Lei Zhang
lgtm
4 years, 8 months ago (2016-04-23 00:53:45 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1915693002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1915693002/1
4 years, 8 months ago (2016-04-23 02:03:40 UTC) #7
commit-bot: I haz the power
4 years, 8 months ago (2016-04-23 02:18:35 UTC) #9
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://pdfium.googlesource.com/pdfium/+/14f5aeb5a46f330bd9386cd698fa25da3775...

Powered by Google App Engine
This is Rietveld 408576698