From 8168446c7eaaa0594e1f4ca923376dcf3a2846fa Mon Sep 17 00:00:00 2001 From: "snappy.mirrorbot@gmail.com" Date: Tue, 5 Feb 2013 14:30:05 +0000 Subject: [PATCH] Make ./snappy_unittest pass without "srcdir" being defined. Previously, snappy_unittests would read from an absolute path /testdata/..; convert it to use a relative path instead. Patch from Marc-Antonie Ruel. R=maruel git-svn-id: https://snappy.googlecode.com/svn/trunk@72 03e5f5b5-db94-4691-08a0-1a8bf15f6143 --- snappy-test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snappy-test.cc b/snappy-test.cc index 487b29c..3f4003d 100644 --- a/snappy-test.cc +++ b/snappy-test.cc @@ -50,7 +50,7 @@ string ReadTestDataFile(const string& base) { &contents, file::Defaults()).CheckSuccess(); } else { - file::ReadFileToString("/testdata/" + base, + file::ReadFileToString("testdata/" + base, &contents, file::Defaults()).CheckSuccess(); }