Skip to content
Browse files

disabled two tests on win32 because the OS has a different behavior

  • Loading branch information...
1 parent cb236d4 commit 81a44f82fc5cd03913bae3579040f27c9b768999 @cruppstahl cruppstahl committed Jun 22, 2011
Showing with 13 additions and 1 deletion.
  1. +13 −1 unittests/log.cpp
View
14 unittests/log.cpp
@@ -1567,9 +1567,14 @@ class LogHighLevelTest : public hamsterDB_fixture
/* lessfs bug reported by Mark - after a commit, the header page was
* not flushed AND after recovery, the header page was not re-initialized
* with the data from the log, thus the information about the new root
- * page was lost */
+ * page was lost
+ *
+ * This test fails on win32 because Windows does not allow to copy a file
+ * that is currently in use
+ */
void splitInsertTxnRawcopyTest(void)
{
+#ifndef WIN32
ham_parameter_t p[]={
{HAM_PARAM_PAGESIZE, 1024},
{HAM_PARAM_KEYSIZE, 200},
@@ -1651,6 +1656,7 @@ class LogHighLevelTest : public hamsterDB_fixture
find("d", "4");
find("e", "5");
BFC_ASSERT_EQUAL(0, ham_close(m_db, 0));
+#endif
}
void insertAfterCheckpointTest(void)
@@ -1784,8 +1790,13 @@ class LogHighLevelTest : public hamsterDB_fixture
compareLogs(&exp, &vec);
}
+ /*
+ * This test fails on win32 because Windows does not allow to copy a file
+ * that is currently in use
+ */
void eraseMergeTxnRawcopyTest(void)
{
+#ifndef WIN32
ham_parameter_t p[]={
{HAM_PARAM_PAGESIZE, 1024},
{HAM_PARAM_KEYSIZE, 200},
@@ -1867,6 +1878,7 @@ class LogHighLevelTest : public hamsterDB_fixture
find("a", "1");
find("b", "2");
BFC_ASSERT_EQUAL(0, ham_close(m_db, 0));
+#endif
}
void cursorOverwriteTest(void)

0 comments on commit 81a44f8

Please sign in to comment.
Something went wrong with that request. Please try again.