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

Issue 1081493002: base/test/launcher: don't trim leading whitespace from test output (Closed)

Created:
5 years, 8 months ago by ncarter (slow)
Modified:
5 years, 8 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@lucasfix
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

base/test/launcher: Don't trim leading whitespace from test output base/strings: Remove an unnecessary UTF8 check from one of the trim functions gtest's message often use leading whitespace in a way that's visually meaningful. Some examples: ======== EXPECT_EQ(this, this+1); my_test.cc(2048): error: Value of: this+1 Actual: 24F8B8D4 Expected: this Which is: 24F8B8A0 ======== ======== EXPECT_EQ("AA\nBB\nDD", std::string("AA\nXX\nDD")); my_test.cc(2049): error: Value of: std::string("AA\nXX\nDD") Actual: "AA\nXX\nDD" Expected: "AA\nBB\nDD" With diff: @@ -1,3 +1,3 @@ AA -BB +XX DD ======== Today leading whitespaces are stripped out by the test launcher, leading to less readable test stdout on the bots (and headaches, especially, if the 'AA' value in the example above had leading whitespace itself -- which is how I noticed this). The current whitespace trimming seems to be an accidental effect of [https://codereview.chromium.org/324893004], so it should be safe to change back. BUG=475265 Committed: https://crrev.com/0fbbee21cbea17a544c30b6d5e769f9e4ba8ad44 Cr-Commit-Position: refs/heads/master@{#325512}

Patch Set 1 #

Patch Set 2 : Remove UTF8 DCHECK from SplitStringDontTrim #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -3 lines) Patch
M base/strings/string_split.cc View 1 2 chunks +0 lines, -2 lines 3 comments Download
M base/test/launcher/test_launcher.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 27 (9 generated)
ncarter (slow)
Pawel, please review! Thanks.
5 years, 8 months ago (2015-04-10 22:32:01 UTC) #2
Paweł Hajdan Jr.
LGTM, thanks!
5 years, 8 months ago (2015-04-13 15:56:35 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1081493002/1
5 years, 8 months ago (2015-04-13 17:22:54 UTC) #5
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel/builds/54894)
5 years, 8 months ago (2015-04-14 00:15:39 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1081493002/1
5 years, 8 months ago (2015-04-14 17:43:13 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel/builds/55322)
5 years, 8 months ago (2015-04-15 00:00:12 UTC) #11
its_nick_at_chromium_org
Pawel, any idea what's going on with the cq failure on this patch? I think ...
5 years, 8 months ago (2015-04-15 03:06:26 UTC) #13
ncarter (slow)
Nevermind -- I think I see what's happening now; we're hitting a dcheck in SplitStringDontTrim, ...
5 years, 8 months ago (2015-04-15 16:47:23 UTC) #14
ncarter (slow)
thakis: please take a look I've removed the IsUTF8 check here after determining it to ...
5 years, 8 months ago (2015-04-15 17:28:22 UTC) #15
ncarter (slow)
nico: ping
5 years, 8 months ago (2015-04-16 16:57:33 UTC) #17
Nico
This was the first time this showed up in my mailbox. Maybe you didn't add ...
5 years, 8 months ago (2015-04-16 17:05:24 UTC) #18
ncarter (slow)
https://codereview.chromium.org/1081493002/diff/20001/base/strings/string_split.cc File base/strings/string_split.cc (left): https://codereview.chromium.org/1081493002/diff/20001/base/strings/string_split.cc#oldcode196 base/strings/string_split.cc:196: DCHECK(IsStringUTF8(str)); On 2015/04/16 17:05:24, Nico wrote: > This change ...
5 years, 8 months ago (2015-04-16 18:08:01 UTC) #19
ncarter (slow)
https://codereview.chromium.org/1081493002/diff/20001/base/strings/string_split.cc File base/strings/string_split.cc (left): https://codereview.chromium.org/1081493002/diff/20001/base/strings/string_split.cc#oldcode196 base/strings/string_split.cc:196: DCHECK(IsStringUTF8(str)); On 2015/04/16 18:08:00, ncarter wrote: > On 2015/04/16 ...
5 years, 8 months ago (2015-04-16 18:08:50 UTC) #20
Nico
On Thu, Apr 16, 2015 at 11:08 AM, <nick@chromium.org> wrote: > > https://codereview.chromium.org/1081493002/diff/20001/ > base/strings/string_split.cc ...
5 years, 8 months ago (2015-04-16 18:22:04 UTC) #21
Nico
lgtm from rietveld too
5 years, 8 months ago (2015-04-16 18:22:20 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1081493002/20001
5 years, 8 months ago (2015-04-16 18:26:42 UTC) #25
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 8 months ago (2015-04-16 20:58:43 UTC) #26
commit-bot: I haz the power
5 years, 8 months ago (2015-04-16 20:59:32 UTC) #27
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/0fbbee21cbea17a544c30b6d5e769f9e4ba8ad44
Cr-Commit-Position: refs/heads/master@{#325512}

Powered by Google App Engine
This is Rietveld 408576698