diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-24 15:48:53 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-24 15:48:53 +0000 |
commit | 9b9add0e3670491fc15828af54769dc4347af228 (patch) | |
tree | 815bef16ac35e585fb85ddc705f56197c6d8af33 /base/directory_watcher_unittest.cc | |
parent | 13ab8bf98763070a06215553e6f79a6cc16f2bdb (diff) | |
download | chromium_src-9b9add0e3670491fc15828af54769dc4347af228.zip chromium_src-9b9add0e3670491fc15828af54769dc4347af228.tar.gz chromium_src-9b9add0e3670491fc15828af54769dc4347af228.tar.bz2 |
Disable DirectoryWatcherTest.SubDirNonRecursive on Windows versions
earlier than Vista.
Review URL: http://codereview.chromium.org/42564
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12361 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/directory_watcher_unittest.cc')
-rw-r--r-- | base/directory_watcher_unittest.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/base/directory_watcher_unittest.cc b/base/directory_watcher_unittest.cc index 20ec4897..fabd46f 100644 --- a/base/directory_watcher_unittest.cc +++ b/base/directory_watcher_unittest.cc @@ -13,6 +13,9 @@ #include "base/path_service.h" #include "base/platform_thread.h" #include "base/string_util.h" +#if defined(OS_WIN) +#include "base/win_util.h" +#endif // defined(OS_WIN) #include "testing/gtest/include/gtest/gtest.h" namespace { @@ -171,6 +174,13 @@ TEST_F(DirectoryWatcherTest, SubDirRecursive) { } TEST_F(DirectoryWatcherTest, SubDirNonRecursive) { +#if defined(OS_WIN) + // Disable this test for earlier version of Windows. It turned out to be + // very difficult to create a reliable test for them. + if (win_util::GetWinVersion() < win_util::WINVERSION_VISTA) + return; +#endif // defined(OS_WIN) + FilePath subdir(FILE_PATH_LITERAL("SubDir")); ASSERT_TRUE(file_util::CreateDirectory(test_dir_.Append(subdir))); |