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

incorrect include() in simpletest library

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 1.9
    • Component/s: General
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      I am getting this fateal error when running all unit tests:
      Fatal error: Cannot redeclare class gradelib_test in /home/skodak/workspace/moodle/lib/simpletest/testgradelib.php on line 1375

      the problem is that testgradelib.php is included from other tests, but the library itself is using include() when iterating through the files. Attached patch should fix it, it also adds description of this modification into readme_moodle.txt (the usual way of describing of our specific patches in upstream code).

        Attachments

          Activity

            People

            Assignee:
            nicolasconnault Nicolas Connault
            Reporter:
            skodak Petr Skoda
            Tester:
            Nobody Nobody
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              3/Mar/08