Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-20891

some dmllib unit tests failing if record cache enabled

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.5, 1.9.6
    • Fix Version/s: 2.0
    • Component/s: Unit tests
    • Labels:
      None
    • Environment:
      linux, postgresql
    • Database:
      PostgreSQL
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      To reproduce:

      set "cache type" = internal
      set "record cache" = yes

      Run the unit test lib/simpletest/testdmllib.php.

      This results in errors similar to:

      Fail: lib/simpletest/testdmllib.php / ? dmllib_test / ? test_backslashes_and_quotes / ?
      Equal expectation fails at character 0 with [new entry] and [insert backslashes and quotes alone (even): "" ''
      ] at [/opt/local/www/m19/lib/simpletest/testdmllib.php line 348]

      test_backslashes_and_quotes() is getting cached data instead of the record inserted immediately before the select, and so the test fails.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                2 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  24/Nov/10