Fix function name in error message of scoped_temp_dir_test

After https://codereview.chromium.org/826003003/.

R=mark@chromium.org

Review URL: https://codereview.chromium.org/836833003
This commit is contained in:
Scott Graham 2015-01-08 11:08:32 -08:00
parent f9c487b1e1
commit a277e14c9e

View File

@ -39,14 +39,17 @@ bool FileExists(const base::FilePath& path) {
#if defined(OS_POSIX)
struct stat st;
int rv = lstat(path.value().c_str(), &st);
const char stat_function[] = "lstat";
#elif defined(OS_WIN)
struct _stat st;
int rv = _wstat(path.value().c_str(), &st);
const char stat_function[] = "_wstat";
#else
#error "Not implemented"
#endif
if (rv < 0) {
EXPECT_EQ(ENOENT, errno) << ErrnoMessage("lstat") << " " << path.value();
EXPECT_EQ(ENOENT, errno) << ErrnoMessage(stat_function) << " "
<< path.value();
return false;
}
return true;