summaryrefslogtreecommitdiffstats
path: root/net/ftp
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-07 09:20:12 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-07 09:20:12 +0000
commit5e6c1e4a641a9668c70e713f3e559ebde15c775c (patch)
treee7071cf54161fb1db97b9728d25aa28d8768d7c5 /net/ftp
parent15f1beabcb6efd4708118caeaf6d36a7a6d92e5d (diff)
downloadchromium_src-5e6c1e4a641a9668c70e713f3e559ebde15c775c.zip
chromium_src-5e6c1e4a641a9668c70e713f3e559ebde15c775c.tar.gz
chromium_src-5e6c1e4a641a9668c70e713f3e559ebde15c775c.tar.bz2
Disable an FTP test which contains a date with year 2079 due to year-2038 problem on Linux.
The date wraps around then and gives nonsensical results (the field to store the timestamp is too short to store dates beyond year 2038). TBR=wtc TEST=none BUG=25520 Review URL: http://codereview.chromium.org/372044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31378 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/ftp')
-rw-r--r--net/ftp/ftp_directory_listing_parsers_unittest.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ftp/ftp_directory_listing_parsers_unittest.cc b/net/ftp/ftp_directory_listing_parsers_unittest.cc
index da5ca11..8c970914 100644
--- a/net/ftp/ftp_directory_listing_parsers_unittest.cc
+++ b/net/ftp/ftp_directory_listing_parsers_unittest.cc
@@ -117,9 +117,12 @@ TEST_F(FtpDirectoryListingParsersTest, Windows) {
{ "01-06-80 02:42AM 458 Corner3.txt",
net::FtpDirectoryListingEntry::FILE, "Corner3.txt", 458,
1980, 1, 6, 2, 42 },
+#if !defined(OS_LINUX)
+ // TODO(phajdan.jr): Re-enable when 2038-year problem is fixed on Linux.
{ "01-06-79 02:42AM 458 Corner4",
net::FtpDirectoryListingEntry::FILE, "Corner4", 458,
2079, 1, 6, 2, 42 },
+#endif // !defined (OS_LINUX)
{ "01-06-1979 02:42AM 458 Readme.txt",
net::FtpDirectoryListingEntry::FILE, "Readme.txt", 458,
1979, 1, 6, 2, 42 },