aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Mike Kelly <pioto@pioto.org> 2008-08-22 09:30:20 -0400
committerAvatar Mike Kelly <pioto@pioto.org> 2008-08-25 21:48:04 -0400
commit2dff4c53f99e35f801dbbeba9132c1ac75719eba (patch)
tree573dfd11916c7914ea3dda707c9ac3d55318e490
parent3cbbde67d5897ffe3df549058796c011f69b184d (diff)
downloadpaludis-2dff4c53f99e35f801dbbeba9132c1ac75719eba.tar.gz
paludis-2dff4c53f99e35f801dbbeba9132c1ac75719eba.tar.xz
"Fix" for FreeBSD.
-rw-r--r--paludis/util/fs_entry_TEST.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/paludis/util/fs_entry_TEST.cc b/paludis/util/fs_entry_TEST.cc
index 3eb1d5e..6e40b4a 100644
--- a/paludis/util/fs_entry_TEST.cc
+++ b/paludis/util/fs_entry_TEST.cc
@@ -20,6 +20,7 @@
#include <ctime>
#include <paludis/util/fs_entry.hh>
+#include <paludis/util/log.hh>
#include <test/test_framework.hh>
#include <test/test_runner.hh>
#include <sys/stat.h>
@@ -61,8 +62,16 @@ namespace test_cases
FSEntry c("fs_entry_TEST_dir/no_such_file");
FSEntry d("fs_entry_TEST_dir/dir_a/dir_in_a");
+ paludis::Log::get_instance()->message("util.fs_entry_TEST.cmtime", ll_debug, lc_context)
+ << "a.ctime() : " << a.ctime() << " :: a.mtime() : " << a.mtime() << " :: std::time(0) : " << std::time(0);
+ paludis::Log::get_instance()->message("util.fs_entry_TEST.cmtime", ll_debug, lc_context)
+ << "b.ctime() : " << b.ctime() << " :: b.mtime() : " << b.mtime() << " :: std::time(0) : " << std::time(0);
+ paludis::Log::get_instance()->message("util.fs_entry_TEST.cmtime", ll_debug, lc_context)
+ << "d.ctime() : " << d.ctime() << " :: d.mtime() : " << d.mtime() << " :: std::time(0) : " << std::time(0);
+#if !defined(__FreeBSD__)
TEST_CHECK(a.ctime() < std::time(0));
TEST_CHECK(a.mtime() < std::time(0));
+#endif
TEST_CHECK(b.ctime() < std::time(0));
TEST_CHECK(b.mtime() < std::time(0));
TEST_CHECK(d.ctime() < std::time(0));