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

Issue 5500001: Eliminate the dependency on kernel pseudo-files when running unit tests (Closed)

Created:
10 years ago by jrbarnette
Modified:
9 years, 6 months ago
Reviewers:
kmixter1
CC:
chromium-os-reviews_chromium.org
Visibility:
Public.

Description

Eliminate the dependency on kernel pseudo-files when running unit tests This change means that the unit tests no longer need /proc/uptime or /sys/block/sda/stat in order to operate properly. As an added bonus, this change enables testing that the output of bootstat_log() exactly matches the expected content. BUG=chromium-os:8311 TEST=Run the unit tests Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=dda03f9

Patch Set 1 #

Patch Set 2 : Miscellaneous cleanup #

Total comments: 8

Patch Set 3 : Update in response to review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+330 lines, -60 lines) Patch
M Makefile View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M bootstat_log.c View 1 2 3 chunks +66 lines, -33 lines 0 comments Download
A bootstat_test.h View 1 2 1 chunk +24 lines, -0 lines 0 comments Download
M log_unit_tests.cc View 1 2 2 chunks +236 lines, -26 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
jrbarnette
10 years ago (2010-12-01 21:27:46 UTC) #1
kmixter1
LGTM with nits http://codereview.chromium.org/5500001/diff/3001/Makefile File Makefile (right): http://codereview.chromium.org/5500001/diff/3001/Makefile#newcode13 Makefile:13: tests: COMMON_CFLAGS += -DCONFIG_UNIT_TEST This is ...
10 years ago (2010-12-06 04:23:52 UTC) #2
jrbarnette
http://codereview.chromium.org/5500001/diff/3001/Makefile File Makefile (right): http://codereview.chromium.org/5500001/diff/3001/Makefile#newcode13 Makefile:13: tests: COMMON_CFLAGS += -DCONFIG_UNIT_TEST On 2010/12/06 04:23:52, kmixter1 wrote: ...
10 years ago (2010-12-06 17:47:45 UTC) #3
kmixter1
FYI http://codereview.chromium.org/5500001/diff/3001/Makefile File Makefile (right): http://codereview.chromium.org/5500001/diff/3001/Makefile#newcode13 Makefile:13: tests: COMMON_CFLAGS += -DCONFIG_UNIT_TEST On 2010/12/06 17:47:46, jrbarnette ...
10 years ago (2010-12-06 18:22:36 UTC) #4
jrbarnette
New and improved! (details below). PTAL. On 2010/12/06 04:23:52, kmixter1 wrote: > http://codereview.chromium.org/5500001/diff/3001/bootstat_log.c#newcode63 > bootstat_log.c:63: ...
10 years ago (2010-12-06 22:25:00 UTC) #5
jrbarnette
On 2010/12/06 18:22:36, kmixter1 wrote: [ ... ] > I was mostly commenting on the ...
10 years ago (2010-12-06 22:27:42 UTC) #6
kmixter1
10 years ago (2010-12-07 00:30:47 UTC) #7
LGTM

Powered by Google App Engine
This is Rietveld 408576698