Index: util/test/scoped_temp_dir_test.cc |
diff --git a/util/test/scoped_temp_dir_test.cc b/util/test/scoped_temp_dir_test.cc |
index fd2d9c2fb93d2103a9db48cf1768f6b5e851ba63..7815405a267c54cf3b1bd181ea8206d27975639e 100644 |
--- a/util/test/scoped_temp_dir_test.cc |
+++ b/util/test/scoped_temp_dir_test.cc |
@@ -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; |