commit | d75941244491c922456bf0fa4a987c098f082a76 | [log] [tgz] |
---|---|---|
author | rouslan@chromium.org <rouslan@chromium.org@38ededc0-08b8-5190-f2ac-b31f878777ad> | Wed Jul 23 19:52:03 2014 +0000 |
committer | rouslan@chromium.org <rouslan@chromium.org@38ededc0-08b8-5190-f2ac-b31f878777ad> | Wed Jul 23 19:52:03 2014 +0000 |
tree | cfca6c61fb69eb22e64409a047e27ca24682c263 | |
parent | 9df6dae6a50aaed83d010be8a05030c15be204a0 [diff] |
A poor man's release-time assert for failing to open the test data file. This patch prevents running unit tests from an incorrect directory in release mode. Release mode builds ignore assert(file.is_open()) for the test data file, which causes many hard-to-diagnose crashes due to the rest of the code relying on that file being open. See http://crbug.com/395169 and http://crbug.com/396203 for examples. R=roubert@google.com Review URL: https://codereview.appspot.com/116200043 git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@316 38ededc0-08b8-5190-f2ac-b31f878777ad