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
1 file changed
tree: cfca6c61fb69eb22e64409a047e27ca24682c263
  1. cpp/
  2. java/
  3. testdata/
  4. codereview.settings