mirror of
https://github.com/chromium/crashpad.git
synced 2024-12-27 15:32:10 +08:00
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:
parent
f9c487b1e1
commit
a277e14c9e
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user