Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(945)

Unified Diff: util/test/scoped_temp_dir_test.cc

Issue 836833003: Fix function name in error message of scoped_temp_dir_test (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: [] Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698