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

Issue 427014: Fix a test tool for OTS, ot-sanitise.... (Closed)

Created:
11 years, 1 month ago by Yusuke Sato
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Fix a test tool for OTS, ot-sanitise. Check if stdout is a regular file (and not a special file such as /dev/null and /dev/zero) in main() of test/ot-sanitise.cc. BUG=27127 TEST=Run "./ot-sanitise 9de66fe4842edf59e46e15c90e686087.ttf > /dev/null" and verity that it does not trigger an assert failure.

Patch Set 1 #

Total comments: 2

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -4 lines) Patch
M src/ots.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M test/file-stream.h View 1 2 1 chunk +14 lines, -4 lines 2 comments Download

Messages

Total messages: 6 (0 generated)
Yusuke Sato
11 years, 1 month ago (2009-11-21 17:47:47 UTC) #1
Evan Martin
http://codereview.chromium.org/427014/diff/1/4 File test/file-stream.h (right): http://codereview.chromium.org/427014/diff/1/4#newcode37 Line 37: const off_t current_offset = ::ftello(file_); Rather than relying ...
11 years, 1 month ago (2009-11-21 18:34:04 UTC) #2
Yusuke Sato
Fixed test/file-stream.h, reverted test/README and test/ot-sanitise.cc. http://codereview.chromium.org/427014/diff/1/4 File test/file-stream.h (right): http://codereview.chromium.org/427014/diff/1/4#newcode37 test/file-stream.h:37: const off_t current_offset ...
11 years, 1 month ago (2009-11-23 08:38:44 UTC) #3
Evan Martin
LGTM, not sure if you want to wait for jungshik or not, seems pretty obviously ...
11 years, 1 month ago (2009-11-23 17:44:19 UTC) #4
Yusuke Sato
http://codereview.chromium.org/427014/diff/3002/3003 File test/file-stream.h (right): http://codereview.chromium.org/427014/diff/3002/3003#newcode23 test/file-stream.h:23: if (::fwrite(data, length, 1, file_) == 1) { On ...
11 years, 1 month ago (2009-11-23 17:59:23 UTC) #5
Yusuke Sato
11 years, 1 month ago (2009-11-24 02:18:07 UTC) #6
Landed.
http://code.google.com/p/ots/source/detail?r=19

On 2009/11/23 17:59:23, Yusuke Sato wrote:
> http://codereview.chromium.org/427014/diff/3002/3003
> File test/file-stream.h (right):
> 
> http://codereview.chromium.org/427014/diff/3002/3003#newcode23
> test/file-stream.h:23: if (::fwrite(data, length, 1, file_) == 1) {
> On 2009/11/23 17:44:19, Evan Martin wrote:
> > Does this function succeed when writing to /dev/null? 
> 
> Yes, at least on Linux 2.6.

Powered by Google App Engine
This is Rietveld 408576698