Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-11186

Database unit tests fail on windows using sqlite2

    Details

    • Type: Bug
    • Status: Unverified Fix
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.11
    • Fix Version/s: 3.0.12-RC1
    • Component/s: Test Suite
    • Labels:
      None

      Description

      The problem is, that we try to recreate the db and reconnect to it, while the old connection is still hold.
      To resolve this, we just drop all tables and recreate the tables instead of the hole db.

        Activity

        Hide
        nickvergessen Joas Schilling added a comment -

        Error message:

        There were 203 errors:

        1) phpbb_cache_test::test_cache_sql
        unlink(E:\phpBB-development\htdocs\phpBB-git\3.1\tests\test_framework/../phpbb_u
        nit_tests.sqlite2): Permission denied

        E:\phpBB-development\htdocs\phpBB-git\3.1\tests\test_framework\phpbb_database_te
        st_connection_manager.php:171
        E:\phpBB-development\htdocs\phpBB-git\3.1\tests\test_framework\phpbb_database_te
        st_case.php:83
        E:\phpBB-development\htdocs\phpBB-git\3.1\tests\cache\cache_test.php:28
        E:\phpBB-development\php\phpunit:46

        Show
        nickvergessen Joas Schilling added a comment - Error message: There were 203 errors: 1) phpbb_cache_test::test_cache_sql unlink(E:\phpBB-development\htdocs\phpBB-git\3.1\tests\test_framework/../phpbb_u nit_tests.sqlite2): Permission denied E:\phpBB-development\htdocs\phpBB-git\3.1\tests\test_framework\phpbb_database_te st_connection_manager.php:171 E:\phpBB-development\htdocs\phpBB-git\3.1\tests\test_framework\phpbb_database_te st_case.php:83 E:\phpBB-development\htdocs\phpBB-git\3.1\tests\cache\cache_test.php:28 E:\phpBB-development\php\phpunit:46

          People

          • Assignee:
            nickvergessen Joas Schilling
            Reporter:
            nickvergessen Joas Schilling
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development