37 errors in Unit Test

frederik.kunz
frederik.kunz's picture

Joined: 2005-03-21
Posts: 37
Posted: Fri, 2005-05-20 15:46

Hi,

I ran the unit tests just for kicks and got 37 errors:

Failure Details

   1. testaddchildrenfromlocalserver
          * added count 
            Mismatch At: [] 5 !== 4
            5   type:integer
            4   type:integer
   2. testaddchildrenfromlocalserver
          * PHP ERROR: Undefined offset: 4in /home/www/webxxy/html/gallery2/modules/core/test/phpunit/ItemAddFromServerTest.class (itemaddfromservertest::_testaddchildrenfromlocalserver) at line 272
            in /home/www/webxxy/html/gallery2/modules/core/test/phpunit/ItemAddFromServerTest.class (itemaddfromservertest::_testaddchildrenfromlocalserver) at line 104
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfromservertest::testaddchildrenfromlocalserver) at line 291
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfromservertest::runtest) at line 379
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfromservertest::runbare) at line 550
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/phpunit.inc (prettytestresult::run) at line 257
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfromservertest::run) at line 461
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/phpunit.inc (testsuite::run) at line 461
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/index.tpl (testsuite::run) at line 194
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/index.php at line 191
   3. testaddchildrenfromlocalserver
          * added #4 
            Mismatch At: [] apo'strophe.jpg type (string) !== type (NULL)
            apo'strophe.jpg   type:string
            null   type:NULL
   4. testaddchildrenfromlocalserver
          *
   5. testaddchildrenfromlocalserver
          * child count 
            Mismatch At: [] 5 !== 4
            5   type:integer
            4   type:integer
   6. testaddchildrenfromlocalserverusingsymlinkwithsymlinksupported
          * added count 
            Mismatch At: [] 5 !== 4
            5   type:integer
            4   type:integer
   7. testaddchildrenfromlocalserverusingsymlinkwithsymlinksupported
          * PHP ERROR: Undefined offset: 4in /home/www/webxxy/html/gallery2/modules/core/test/phpunit/ItemAddFromServerTest.class (itemaddfromservertest::_testaddchildrenfromlocalserver) at line 272
            in /home/www/webxxy/html/gallery2/modules/core/test/phpunit/ItemAddFromServerTest.class (itemaddfromservertest::_testaddchildrenfromlocalserver) at line 114
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfromservertest::testaddchildrenfromlocalserverusingsymlinkwithsymlinksupported) at line 291
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfromservertest::runtest) at line 379
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfromservertest::runbare) at line 550
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/phpunit.inc (prettytestresult::run) at line 257
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfromservertest::run) at line 461
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/phpunit.inc (testsuite::run) at line 461
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/index.tpl (testsuite::run) at line 194
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/index.php at line 191
   8. testaddchildrenfromlocalserverusingsymlinkwithsymlinksupported
          * added #4 
            Mismatch At: [] apo'strophe.jpg type (string) !== type (NULL)
            apo'strophe.jpg   type:string
            null   type:NULL
   9. testaddchildrenfromlocalserverusingsymlinkwithsymlinksupported
          *
  10. testaddchildrenfromlocalserverusingsymlinkwithsymlinksupported
          * child count 
            Mismatch At: [] 5 !== 4
            5   type:integer
            4   type:integer
  11. testaddchildrenfromlocalserversettitle
          * added count 
            Mismatch At: [] 5 !== 4
            5   type:integer
            4   type:integer
  12. testaddchildrenfromlocalserversettitle
          * PHP ERROR: Undefined offset: 4in /home/www/webxxy/html/gallery2/modules/core/test/phpunit/ItemAddFromServerTest.class (itemaddfromservertest::_testaddchildrenfromlocalserver) at line 272
            in /home/www/webxxy/html/gallery2/modules/core/test/phpunit/ItemAddFromServerTest.class (itemaddfromservertest::_testaddchildrenfromlocalserver) at line 133
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfromservertest::testaddchildrenfromlocalserversettitle) at line 291
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfromservertest::runtest) at line 379
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfromservertest::runbare) at line 550
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/phpunit.inc (prettytestresult::run) at line 257
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfromservertest::run) at line 461
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/phpunit.inc (testsuite::run) at line 461
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/index.tpl (testsuite::run) at line 194
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/index.php at line 191
  13. testaddchildrenfromlocalserversettitle
          * added #4 
            Mismatch At: [] apo'strophe.jpg type (string) !== type (NULL)
            apo'strophe.jpg   type:string
            null   type:NULL
  14. testaddchildrenfromlocalserversettitle
          *
  15. testaddchildrenfromlocalserversettitle
          * child count 
            Mismatch At: [] 5 !== 4
            5   type:integer
            4   type:integer
  16. testaddchildrenfromlocalserversettitledescription
          * added count 
            Mismatch At: [] 5 !== 4
            5   type:integer
            4   type:integer
  17. testaddchildrenfromlocalserversettitledescription
          * PHP ERROR: Undefined offset: 4in /home/www/webxxy/html/gallery2/modules/core/test/phpunit/ItemAddFromServerTest.class (itemaddfromservertest::_testaddchildrenfromlocalserver) at line 272
            in /home/www/webxxy/html/gallery2/modules/core/test/phpunit/ItemAddFromServerTest.class (itemaddfromservertest::_testaddchildrenfromlocalserver) at line 141
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfromservertest::testaddchildrenfromlocalserversettitledescription) at line 291
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfromservertest::runtest) at line 379
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfromservertest::runbare) at line 550
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/phpunit.inc (prettytestresult::run) at line 257
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfromservertest::run) at line 461
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/phpunit.inc (testsuite::run) at line 461
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/index.tpl (testsuite::run) at line 194
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/index.php at line 191
  18. testaddchildrenfromlocalserversettitledescription
          * added #4 
            Mismatch At: [] apo'strophe.jpg type (string) !== type (NULL)
            apo'strophe.jpg   type:string
            null   type:NULL
  19. testaddchildrenfromlocalserversettitledescription
          *
  20. testaddchildrenfromlocalserversettitledescription
          * child count 
            Mismatch At: [] 5 !== 4
            5   type:integer
            4   type:integer
  21. testaddchildrenfromlocalserverrecursive
          * added count 
            Mismatch At: [] 5 !== 6
            5   type:integer
            6   type:integer
  22. testaddchildrenfromlocalserverrecursive
          * added #2 
            Mismatch At: [] test2.gif !== test3.gif
            test2.gif   type:string
            test3.gif   type:string
  23. testaddchildrenfromlocalserverrecursive
          * added #3 
            Mismatch At: [] test1.jpg !== test2.gif
            test1.jpg   type:string
            test2.gif   type:string
  24. testaddchildrenfromlocalserverrecursive
          * added #4 
            Mismatch At: [] test1.gif !== test1.jpg
            test1.gif   type:string
            test1.jpg   type:string
  25. testaddchildrenfromlocalserverrecursive
          * child count 
            Mismatch At: [] 5 !== 6
            5   type:integer
            6   type:integer
  26. testaddchildrenfromlocalserverrecursive
          * PHP ERROR: Undefined offset: 5in /home/www/webxxy/html/gallery2/modules/core/test/phpunit/ItemAddFromServerTest.class at line 304
            in /home/www/webxxy/html/gallery2/modules/core/test/phpunit/ItemAddFromServerTest.class (itemaddfromservertest::_testaddchildrenfromlocalserver) at line 145
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfromservertest::testaddchildrenfromlocalserverrecursive) at line 291
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfromservertest::runtest) at line 379
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfromservertest::runbare) at line 550
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/phpunit.inc (prettytestresult::run) at line 257
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfromservertest::run) at line 461
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/phpunit.inc (testsuite::run) at line 461
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/index.tpl (testsuite::run) at line 194
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/index.php at line 191
  27. testaddchildrenfromlocalserverrecursiveusingsymlinkwithsymlinksupported
          * added count 
            Mismatch At: [] 5 !== 6
            5   type:integer
            6   type:integer
  28. testaddchildrenfromlocalserverrecursiveusingsymlinkwithsymlinksupported
          * added #2 
            Mismatch At: [] test2.gif !== test3.gif
            test2.gif   type:string
            test3.gif   type:string
  29. testaddchildrenfromlocalserverrecursiveusingsymlinkwithsymlinksupported
          * added #3 
            Mismatch At: [] test1.jpg !== test2.gif
            test1.jpg   type:string
            test2.gif   type:string
  30. testaddchildrenfromlocalserverrecursiveusingsymlinkwithsymlinksupported
          * added #4 
            Mismatch At: [] test1.gif !== test1.jpg
            test1.gif   type:string
            test1.jpg   type:string
  31. testaddchildrenfromlocalserverrecursiveusingsymlinkwithsymlinksupported
          * child count 
            Mismatch At: [] 5 !== 6
            5   type:integer
            6   type:integer
  32. testaddchildrenfromlocalserverrecursiveusingsymlinkwithsymlinksupported
          * PHP ERROR: Undefined offset: 5in /home/www/webxxy/html/gallery2/modules/core/test/phpunit/ItemAddFromServerTest.class at line 304
            in /home/www/webxxy/html/gallery2/modules/core/test/phpunit/ItemAddFromServerTest.class (itemaddfromservertest::_testaddchildrenfromlocalserver) at line 149
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfromservertest::testaddchildrenfromlocalserverrecursiveusingsymlinkwithsymlinksupported) at line 291
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfromservertest::runtest) at line 379
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfromservertest::runbare) at line 550
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/phpunit.inc (prettytestresult::run) at line 257
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfromservertest::run) at line 461
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/phpunit.inc (testsuite::run) at line 461
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/index.tpl (testsuite::run) at line 194
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/index.php at line 191
  33. testaddfromserverfilenametofields
          *  
            Mismatch At: [] 1 !== 0
            1   type:integer
            0   type:integer
  34. testaddfromserverfilenametofields
          * PHP ERROR: Undefined index: addedFilesin /home/www/webxxy/html/gallery2/modules/core/test/phpunit/ItemAddFromServerTest.class (itemaddfromservertest::testaddfromserverfilenametofields) at line 346
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfromservertest::testaddfromserverfilenametofields) at line 291
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfromservertest::runtest) at line 379
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfromservertest::runbare) at line 550
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/phpunit.inc (prettytestresult::run) at line 257
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfromservertest::run) at line 461
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/phpunit.inc (testsuite::run) at line 461
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/index.tpl (testsuite::run) at line 194
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/index.php at line 191
  35. testaddfromserverfilenametofields
          *  
            Mismatch At: [] 1 !== 0
            1   type:integer
            0   type:integer
  36. testaddfromserverfilenametofields
          * PHP ERROR: Undefined index: addedFilesin /home/www/webxxy/html/gallery2/modules/core/test/phpunit/ItemAddFromServerTest.class (gallerycoreapi::testaddfromserverfilenametofields) at line 348
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfromservertest::testaddfromserverfilenametofields) at line 291
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfromservertest::runtest) at line 379
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfromservertest::runbare) at line 550
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/phpunit.inc (prettytestresult::run) at line 257
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfromservertest::run) at line 461
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/phpunit.inc (testsuite::run) at line 461
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/index.tpl (testsuite::run) at line 194
            in /home/www/webxxy/html/gallery2/lib/tools/phpunit/index.php at line 191
  37. testaddfromserverfilenametofields
          * Error (ERROR_BAD_PARAMETER)
                o in /home/www/webxxy/html/gallery2/modules/core/classes/helpers/GalleryEntityHelper_simple.class at line 50 (gallerystatus::error)
                o in /home/www/webxxy/html/gallery2/modules/core/classes/GalleryCoreApi.class at line 2148 (galleryentityhelper_simple::loadentitiesbyid)
                o in /home/www/webxxy/html/gallery2/modules/core/test/phpunit/ItemAddFromServerTest.class at line 348 (gallerycoreapi::loadentitiesbyid)
                o in /home/www/webxxy/html/gallery2/lib/tools/phpunit/phpunit.inc at line 291 (itemaddfromservertest::testaddfromserverfilenametofields)
                o in /home/www/webxxy/html/gallery2/lib/tools/phpunit/phpunit.inc at line 379 (itemaddfromservertest::runtest)
                o in /home/www/webxxy/html/gallery2/lib/tools/phpunit/phpunit.inc at line 550 (itemaddfromservertest::runbare)
                o in /home/www/webxxy/html/gallery2/lib/tools/phpunit/phpunit.inc at line 257 (prettytestresult::run)
                o in /home/www/webxxy/html/gallery2/lib/tools/phpunit/phpunit.inc at line 461 (itemaddfromservertest::run)
                o in /home/www/webxxy/html/gallery2/lib/tools/phpunit/phpunit.inc at line 461 (testsuite::run)
                o in /home/www/webxxy/html/gallery2/lib/tools/phpunit/index.tpl at line 194 (testsuite::run)
                o in /home/www/webxxy/html/gallery2/lib/tools/phpunit/index.php at line 191
  38. testcodeaudit
          * index.php contains illegal keyword bind_textdomain_codeset on line 65
  39. testcodeaudit
          * index.php contains illegal keyword bind_textdomain_codeset on line 97

Is this anything to worry about? Here is my setup:

Gallery version = 2.0-beta-3+ Core 0.9.18
PHP version = 4.3.10 apache
web server = Apache
Database = mysqlt 4.0.18-standard
Toolkits = ArchiveUpload, Gd, Exif, Thumbnail, ImageMagick
Operating System = Linux can19 2.4.29 #10 SMP Sun Jan 23 17:38:14 CET 2005 i686
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.7.8) Gecko/20050511 Firefox/1.0.4

 
frederik.kunz
frederik.kunz's picture

Joined: 2005-03-21
Posts: 37
Posted: Fri, 2005-05-20 16:06

This is what I got on my other system:

Gallery-Version = 2.0-beta-3+ Kern 0.9.18
PHP-Version = 5.0.3 apache2handler
Webserver = Apache/2.0.54 (Gentoo/Linux) mod_ssl/2.0.54 OpenSSL/0.9.7e DAV/2 PHP/5.0.3 mod_jk/1.2.12
Datenbank = mysqlt 4.1.8-log
Werkzeuge = ArchiveUpload, Exif, Gd, Thumbnail
Betriebssystem = Linux intranet 2.6.11-gentoo-r4 #1 Tue Mar 22 20:41:32 CET 2005 i686
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.7.8) Gecko/20050511 Firefox/1.0.4

Failure Details

   1. testDeleteUserDeleteItemWithoutPermission
          * The item was deleted
   2. testDeleteUserDeleteItemWithoutPermission
          * Error (ERROR_MISSING_OBJECT)
                o in /var/www/localhost/htdocs/gallery2/modules/core/classes/GalleryStorage/DatabaseStorage.class at line 376 (MySqlDatabaseStorage::error)
                o in /var/www/localhost/htdocs/gallery2/modules/core/classes/GalleryStorage/DatabaseStorage.class at line 735 (MySqlDatabaseStorage::loadEntities)
                o in /var/www/localhost/htdocs/gallery2/modules/core/classes/GalleryStorage.class at line 196 (MySqlDatabaseStorage::refreshEntity)
                o in /var/www/localhost/htdocs/gallery2/modules/core/classes/GalleryEntity.class at line 339 (GalleryStorage::refreshEntity)
                o in /var/www/localhost/htdocs/gallery2/modules/core/test/phpunit/AdminDeleteUserControllerTest.class at line 432 (GalleryUnknownItem::refresh)
                o in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc at line 291 (AdminDeleteUserControllerTest::testDeleteUserDeleteItemWithoutPermission)
                o in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc at line 379 (AdminDeleteUserControllerTest::runTest)
                o in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc at line 550 (AdminDeleteUserControllerTest::runBare)
                o in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc at line 257 (PrettyTestResult::run)
                o in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc at line 461 (AdminDeleteUserControllerTest::run)
                o in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc at line 461 (TestSuite::run)
                o in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/index.tpl at line 194 (TestSuite::run)
                o in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/index.php at line 191
   3. testDescendentItemIdsInadequatePermissions
          * inadequate permissions 
            Mismatch At: [] extra keys in array 2: 0,1,2,3,4

array (
)

               type:array

array (
  0 => 4150,
  1 => 4153,
  2 => 4156,
  3 => 4157,
  4 => 4158,
)

               type:array
   4. testDescendentItemIdsNoPermissions
          * no permissions 
            Mismatch At: [] extra keys in array 2: 0,1,2,3,4

array (
)

               type:array

array (
  0 => 4161,
  1 => 4164,
  2 => 4167,
  3 => 4168,
  4 => 4169,
)

               type:array
   5. testAddChildrenFromLocalServer
          * added count 
            Mismatch At: [] 5 !== 4
            5   type:integer
            4   type:integer
   6. testAddChildrenFromLocalServer
          * PHP ERROR: Undefined offset: 4in /var/www/localhost/htdocs/gallery2/modules/core/test/phpunit/ItemAddFromServerTest.class (ItemAddFromServerTest::_testAddChildrenFromLocalServer) at line 272
            in /var/www/localhost/htdocs/gallery2/modules/core/test/phpunit/ItemAddFromServerTest.class (ItemAddFromServerTest::_testAddChildrenFromLocalServer) at line 104
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (ItemAddFromServerTest::testAddChildrenFromLocalServer) at line 291
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (ItemAddFromServerTest::runTest) at line 379
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (ItemAddFromServerTest::runBare) at line 550
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (PrettyTestResult::run) at line 257
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (ItemAddFromServerTest::run) at line 461
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (TestSuite::run) at line 461
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/index.tpl (TestSuite::run) at line 194
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/index.php at line 191
   7. testAddChildrenFromLocalServer
          * added #4 
            Mismatch At: [] apo'strophe.jpg type (string) !== type (NULL)
            apo'strophe.jpg   type:string
            null   type:NULL
   8. testAddChildrenFromLocalServer
          *
   9. testAddChildrenFromLocalServer
          * child count 
            Mismatch At: [] 5 !== 4
            5   type:integer
            4   type:integer
  10. testAddChildrenFromLocalServerUsingSymlinkWithSymlinkSupported
          * added count 
            Mismatch At: [] 5 !== 4
            5   type:integer
            4   type:integer
  11. testAddChildrenFromLocalServerUsingSymlinkWithSymlinkSupported
          * PHP ERROR: Undefined offset: 4in /var/www/localhost/htdocs/gallery2/modules/core/test/phpunit/ItemAddFromServerTest.class (ItemAddFromServerTest::_testAddChildrenFromLocalServer) at line 272
            in /var/www/localhost/htdocs/gallery2/modules/core/test/phpunit/ItemAddFromServerTest.class (ItemAddFromServerTest::_testAddChildrenFromLocalServer) at line 114
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (ItemAddFromServerTest::testAddChildrenFromLocalServerUsingSymlinkWithSymlinkSupported) at line 291
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (ItemAddFromServerTest::runTest) at line 379
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (ItemAddFromServerTest::runBare) at line 550
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (PrettyTestResult::run) at line 257
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (ItemAddFromServerTest::run) at line 461
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (TestSuite::run) at line 461
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/index.tpl (TestSuite::run) at line 194
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/index.php at line 191
  12. testAddChildrenFromLocalServerUsingSymlinkWithSymlinkSupported
          * added #4 
            Mismatch At: [] apo'strophe.jpg type (string) !== type (NULL)
            apo'strophe.jpg   type:string
            null   type:NULL
  13. testAddChildrenFromLocalServerUsingSymlinkWithSymlinkSupported
          *
  14. testAddChildrenFromLocalServerUsingSymlinkWithSymlinkSupported
          * child count 
            Mismatch At: [] 5 !== 4
            5   type:integer
            4   type:integer
  15. testAddChildrenFromLocalServerSetTitle
          * added count 
            Mismatch At: [] 5 !== 4
            5   type:integer
            4   type:integer
  16. testAddChildrenFromLocalServerSetTitle
          * PHP ERROR: Undefined offset: 4in /var/www/localhost/htdocs/gallery2/modules/core/test/phpunit/ItemAddFromServerTest.class (ItemAddFromServerTest::_testAddChildrenFromLocalServer) at line 272
            in /var/www/localhost/htdocs/gallery2/modules/core/test/phpunit/ItemAddFromServerTest.class (ItemAddFromServerTest::_testAddChildrenFromLocalServer) at line 133
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (ItemAddFromServerTest::testAddChildrenFromLocalServerSetTitle) at line 291
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (ItemAddFromServerTest::runTest) at line 379
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (ItemAddFromServerTest::runBare) at line 550
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (PrettyTestResult::run) at line 257
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (ItemAddFromServerTest::run) at line 461
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (TestSuite::run) at line 461
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/index.tpl (TestSuite::run) at line 194
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/index.php at line 191
  17. testAddChildrenFromLocalServerSetTitle
          * added #4 
            Mismatch At: [] apo'strophe.jpg type (string) !== type (NULL)
            apo'strophe.jpg   type:string
            null   type:NULL
  18. testAddChildrenFromLocalServerSetTitle
          *
  19. testAddChildrenFromLocalServerSetTitle
          * child count 
            Mismatch At: [] 5 !== 4
            5   type:integer
            4   type:integer
  20. testAddChildrenFromLocalServerSetTitleDescription
          * added count 
            Mismatch At: [] 5 !== 4
            5   type:integer
            4   type:integer
  21. testAddChildrenFromLocalServerSetTitleDescription
          * PHP ERROR: Undefined offset: 4in /var/www/localhost/htdocs/gallery2/modules/core/test/phpunit/ItemAddFromServerTest.class (ItemAddFromServerTest::_testAddChildrenFromLocalServer) at line 272
            in /var/www/localhost/htdocs/gallery2/modules/core/test/phpunit/ItemAddFromServerTest.class (ItemAddFromServerTest::_testAddChildrenFromLocalServer) at line 141
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (ItemAddFromServerTest::testAddChildrenFromLocalServerSetTitleDescription) at line 291
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (ItemAddFromServerTest::runTest) at line 379
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (ItemAddFromServerTest::runBare) at line 550
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (PrettyTestResult::run) at line 257
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (ItemAddFromServerTest::run) at line 461
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (TestSuite::run) at line 461
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/index.tpl (TestSuite::run) at line 194
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/index.php at line 191
  22. testAddChildrenFromLocalServerSetTitleDescription
          * added #4 
            Mismatch At: [] apo'strophe.jpg type (string) !== type (NULL)
            apo'strophe.jpg   type:string
            null   type:NULL
  23. testAddChildrenFromLocalServerSetTitleDescription
          *
  24. testAddChildrenFromLocalServerSetTitleDescription
          * child count 
            Mismatch At: [] 5 !== 4
            5   type:integer
            4   type:integer
  25. testAddFromServerFilenameToFields
          *  
            Mismatch At: [] 1 !== 0
            1   type:integer
            0   type:integer
  26. testAddFromServerFilenameToFields
          * PHP ERROR: Undefined index: addedFilesin /var/www/localhost/htdocs/gallery2/modules/core/test/phpunit/ItemAddFromServerTest.class (ItemAddFromServerTest::testAddFromServerFilenameToFields) at line 346
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (ItemAddFromServerTest::testAddFromServerFilenameToFields) at line 291
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (ItemAddFromServerTest::runTest) at line 379
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (ItemAddFromServerTest::runBare) at line 550
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (PrettyTestResult::run) at line 257
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (ItemAddFromServerTest::run) at line 461
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (TestSuite::run) at line 461
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/index.tpl (TestSuite::run) at line 194
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/index.php at line 191
  27. testAddFromServerFilenameToFields
          *  
            Mismatch At: [] 1 !== 0
            1   type:integer
            0   type:integer
  28. testAddFromServerFilenameToFields
          * PHP ERROR: Undefined index: addedFilesin /var/www/localhost/htdocs/gallery2/modules/core/test/phpunit/ItemAddFromServerTest.class (ItemAddFromServerTest::testAddFromServerFilenameToFields) at line 348
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (ItemAddFromServerTest::testAddFromServerFilenameToFields) at line 291
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (ItemAddFromServerTest::runTest) at line 379
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (ItemAddFromServerTest::runBare) at line 550
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (PrettyTestResult::run) at line 257
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (ItemAddFromServerTest::run) at line 461
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (TestSuite::run) at line 461
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/index.tpl (TestSuite::run) at line 194
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/index.php at line 191
  29. testAddFromServerFilenameToFields
          * Error (ERROR_BAD_PARAMETER)
                o in /var/www/localhost/htdocs/gallery2/modules/core/classes/helpers/GalleryEntityHelper_simple.class at line 50 (ItemAddFromServerTest::error)
                o in /var/www/localhost/htdocs/gallery2/modules/core/classes/GalleryCoreApi.class at line 2148 (ItemAddFromServerTest::loadEntitiesById)
                o in /var/www/localhost/htdocs/gallery2/modules/core/test/phpunit/ItemAddFromServerTest.class at line 348 (ItemAddFromServerTest::loadEntitiesById)
                o in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc at line 291 (ItemAddFromServerTest::testAddFromServerFilenameToFields)
                o in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc at line 379 (ItemAddFromServerTest::runTest)
                o in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc at line 550 (ItemAddFromServerTest::runBare)
                o in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc at line 257 (PrettyTestResult::run)
                o in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc at line 461 (ItemAddFromServerTest::run)
                o in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc at line 461 (TestSuite::run)
                o in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/index.tpl at line 194 (TestSuite::run)
                o in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/index.php at line 191
  30. testAddNonViewableImage
          * missing preferred
  31. testAddNonViewableImageWithPreExistingPreferred
          *  
            Mismatch At: [] test-operation;convert-to-image/x-portable-pixmap;convert-to-image/jpeg !== test-operation
            test-operation;convert-to-image/x-portable-pixmap;convert-to-image/jpeg   type:string
            test-operation   type:string
  32. testCodeAudit
          * index.php contains illegal keyword bind_textdomain_codeset on line 65
  33. testCodeAudit
          * index.php contains illegal keyword bind_textdomain_codeset on line 97
  34. testDeleteUserItems
          * Wrongly deleted item (4231)
  35. testDeleteUserItems
          * Error (ERROR_MISSING_OBJECT)
                o in /var/www/localhost/htdocs/gallery2/modules/core/classes/GalleryStorage/DatabaseStorage.class at line 376 (MySqlDatabaseStorage::error)
                o in /var/www/localhost/htdocs/gallery2/modules/core/classes/GalleryStorage/DatabaseStorage.class at line 735 (MySqlDatabaseStorage::loadEntities)
                o in /var/www/localhost/htdocs/gallery2/modules/core/classes/GalleryStorage.class at line 196 (MySqlDatabaseStorage::refreshEntity)
                o in /var/www/localhost/htdocs/gallery2/modules/core/classes/GalleryEntity.class at line 339 (GalleryStorage::refreshEntity)
                o in /var/www/localhost/htdocs/gallery2/modules/core/test/phpunit/UserAndGroupTest.class at line 540 (GalleryAlbumItem::refresh)
                o in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc at line 291 (UserAndGroupTest::testDeleteUserItems)
                o in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc at line 379 (UserAndGroupTest::runTest)
                o in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc at line 550 (UserAndGroupTest::runBare)
                o in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc at line 257 (PrettyTestResult::run)
                o in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc at line 461 (UserAndGroupTest::run)
                o in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc at line 461 (TestSuite::run)
                o in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/index.tpl at line 194 (TestSuite::run)
                o in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/index.php at line 191
Quote:
 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Fri, 2005-05-20 16:09

are you sure you're reporting the correct gallery version? if you got that info out of site admin/maintenance, but sure to run the task again.. it doesn't auto-update when you upgrade, only when you run the task.

I fixed the last 2 (bind_textdomain_codeset).

 
frederik.kunz
frederik.kunz's picture

Joined: 2005-03-21
Posts: 37
Posted: Fri, 2005-05-20 16:14

Changed it, sorry. I have the latest CVS code installed.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Fri, 2005-05-20 17:27

what files do you have in modules/core/test/data and test/data/localUploadDir ?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2005-05-20 22:58

unit tests failing on my gentoo box:

1	core 	itemaddfromservertest 	testaddchildrenfromlocalserver 	FAIL	2.2869
2	core 	itemaddfromservertest 	testaddchildrenfromlocalserverusingsymlinkwithsymlinksupported 	FAIL	1.7504
3	core 	itemaddfromservertest 	testaddchildrenfromlocalserversettitle 	FAIL	1.7478
4	core 	itemaddfromservertest 	testaddchildrenfromlocalserversettitledescription 	FAIL	1.7358
5	core 	itemaddfromservertest 	testaddfromserverfilenametofields 	FAIL	0.8226

details:

Failure Details

   1. testaddchildrenfromlocalserver
          * added count 
            Mismatch At: [] 5 !== 4
            5   type:integer
            4   type:integer
   2. testaddchildrenfromlocalserver
          * PHP ERROR: Undefined offset: 4in /var/www/localhost/htdocs/gallery2/modules/core/test/phpunit/ItemAddFromServerTest.class (itemaddfromservertest::_testaddchildrenfromlocalserver) at line 272
            in /var/www/localhost/htdocs/gallery2/modules/core/test/phpunit/ItemAddFromServerTest.class (itemaddfromservertest::_testaddchildrenfromlocalserver) at line 104
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfromservertest::testaddchildrenfromlocalserver) at line 291
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfromservertest::runtest) at line 379
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfromservertest::runbare) at line 550
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (prettytestresult::run) at line 257
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfromservertest::run) at line 461
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (testsuite::run) at line 461
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/index.tpl (testsuite::run) at line 194
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/index.php at line 191
   3. testaddchildrenfromlocalserver
          * added #4 
            Mismatch At: [] apo'strophe.jpg type (string) !== type (NULL)
            apo'strophe.jpg   type:string
            null   type:NULL
   4. testaddchildrenfromlocalserver
          *
   5. testaddchildrenfromlocalserver
          * child count 
            Mismatch At: [] 5 !== 4
            5   type:integer
            4   type:integer
   6. testaddchildrenfromlocalserverusingsymlinkwithsymlinksupported
          * added count 
            Mismatch At: [] 5 !== 4
            5   type:integer
            4   type:integer
   7. testaddchildrenfromlocalserverusingsymlinkwithsymlinksupported
          * PHP ERROR: Undefined offset: 4in /var/www/localhost/htdocs/gallery2/modules/core/test/phpunit/ItemAddFromServerTest.class (itemaddfromservertest::_testaddchildrenfromlocalserver) at line 272
            in /var/www/localhost/htdocs/gallery2/modules/core/test/phpunit/ItemAddFromServerTest.class (itemaddfromservertest::_testaddchildrenfromlocalserver) at line 114
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfromservertest::testaddchildrenfromlocalserverusingsymlinkwithsymlinksupported) at line 291
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfromservertest::runtest) at line 379
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfromservertest::runbare) at line 550
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (prettytestresult::run) at line 257
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfromservertest::run) at line 461
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (testsuite::run) at line 461
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/index.tpl (testsuite::run) at line 194
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/index.php at line 191
   8. testaddchildrenfromlocalserverusingsymlinkwithsymlinksupported
          * added #4 
            Mismatch At: [] apo'strophe.jpg type (string) !== type (NULL)
            apo'strophe.jpg   type:string
            null   type:NULL
   9. testaddchildrenfromlocalserverusingsymlinkwithsymlinksupported
          *
  10. testaddchildrenfromlocalserverusingsymlinkwithsymlinksupported
          * child count 
            Mismatch At: [] 5 !== 4
            5   type:integer
            4   type:integer
  11. testaddchildrenfromlocalserversettitle
          * added count 
            Mismatch At: [] 5 !== 4
            5   type:integer
            4   type:integer
  12. testaddchildrenfromlocalserversettitle
          * PHP ERROR: Undefined offset: 4in /var/www/localhost/htdocs/gallery2/modules/core/test/phpunit/ItemAddFromServerTest.class (itemaddfromservertest::_testaddchildrenfromlocalserver) at line 272
            in /var/www/localhost/htdocs/gallery2/modules/core/test/phpunit/ItemAddFromServerTest.class (itemaddfromservertest::_testaddchildrenfromlocalserver) at line 133
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfromservertest::testaddchildrenfromlocalserversettitle) at line 291
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfromservertest::runtest) at line 379
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfromservertest::runbare) at line 550
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (prettytestresult::run) at line 257
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfromservertest::run) at line 461
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (testsuite::run) at line 461
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/index.tpl (testsuite::run) at line 194
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/index.php at line 191
  13. testaddchildrenfromlocalserversettitle
          * added #4 
            Mismatch At: [] apo'strophe.jpg type (string) !== type (NULL)
            apo'strophe.jpg   type:string
            null   type:NULL
  14. testaddchildrenfromlocalserversettitle
          *
  15. testaddchildrenfromlocalserversettitle
          * child count 
            Mismatch At: [] 5 !== 4
            5   type:integer
            4   type:integer
  16. testaddchildrenfromlocalserversettitledescription
          * added count 
            Mismatch At: [] 5 !== 4
            5   type:integer
            4   type:integer
  17. testaddchildrenfromlocalserversettitledescription
          * PHP ERROR: Undefined offset: 4in /var/www/localhost/htdocs/gallery2/modules/core/test/phpunit/ItemAddFromServerTest.class (itemaddfromservertest::_testaddchildrenfromlocalserver) at line 272
            in /var/www/localhost/htdocs/gallery2/modules/core/test/phpunit/ItemAddFromServerTest.class (itemaddfromservertest::_testaddchildrenfromlocalserver) at line 141
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfromservertest::testaddchildrenfromlocalserversettitledescription) at line 291
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfromservertest::runtest) at line 379
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfromservertest::runbare) at line 550
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (prettytestresult::run) at line 257
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfromservertest::run) at line 461
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (testsuite::run) at line 461
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/index.tpl (testsuite::run) at line 194
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/index.php at line 191
  18. testaddchildrenfromlocalserversettitledescription
          * added #4 
            Mismatch At: [] apo'strophe.jpg type (string) !== type (NULL)
            apo'strophe.jpg   type:string
            null   type:NULL
  19. testaddchildrenfromlocalserversettitledescription
          *
  20. testaddchildrenfromlocalserversettitledescription
          * child count 
            Mismatch At: [] 5 !== 4
            5   type:integer
            4   type:integer
  21. testaddfromserverfilenametofields
          *  
            Mismatch At: [] 1 !== 0
            1   type:integer
            0   type:integer
  22. testaddfromserverfilenametofields
          * PHP ERROR: Undefined index: addedFilesin /var/www/localhost/htdocs/gallery2/modules/core/test/phpunit/ItemAddFromServerTest.class (itemaddfromservertest::testaddfromserverfilenametofields) at line 346
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfromservertest::testaddfromserverfilenametofields) at line 291
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfromservertest::runtest) at line 379
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfromservertest::runbare) at line 550
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (prettytestresult::run) at line 257
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfromservertest::run) at line 461
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (testsuite::run) at line 461
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/index.tpl (testsuite::run) at line 194
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/index.php at line 191
  23. testaddfromserverfilenametofields
          *  
            Mismatch At: [] 1 !== 0
            1   type:integer
            0   type:integer
  24. testaddfromserverfilenametofields
          * PHP ERROR: Undefined index: addedFilesin /var/www/localhost/htdocs/gallery2/modules/core/test/phpunit/ItemAddFromServerTest.class (gallerycoreapi::testaddfromserverfilenametofields) at line 348
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfromservertest::testaddfromserverfilenametofields) at line 291
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfromservertest::runtest) at line 379
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfromservertest::runbare) at line 550
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (prettytestresult::run) at line 257
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfromservertest::run) at line 461
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc (testsuite::run) at line 461
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/index.tpl (testsuite::run) at line 194
            in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/index.php at line 191
  25. testaddfromserverfilenametofields
          * Error (ERROR_BAD_PARAMETER)
                o in /var/www/localhost/htdocs/gallery2/modules/core/classes/helpers/GalleryEntityHelper_simple.class at line 50 (gallerystatus::error)
                o in /var/www/localhost/htdocs/gallery2/modules/core/classes/GalleryCoreApi.class at line 2148 (galleryentityhelper_simple::loadentitiesbyid)
                o in /var/www/localhost/htdocs/gallery2/modules/core/test/phpunit/ItemAddFromServerTest.class at line 348 (gallerycoreapi::loadentitiesbyid)
                o in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc at line 291 (itemaddfromservertest::testaddfromserverfilenametofields)
                o in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc at line 379 (itemaddfromservertest::runtest)
                o in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc at line 550 (itemaddfromservertest::runbare)
                o in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc at line 257 (prettytestresult::run)
                o in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc at line 461 (itemaddfromservertest::run)
                o in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/phpunit.inc at line 461 (testsuite::run)
                o in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/index.tpl at line 194 (testsuite::run)
                o in /var/www/localhost/htdocs/gallery2/lib/tools/phpunit/index.php at line 191

it's a cvs checkout, no update. i have some about 100 modified files, no missing ones.

 
frederik.kunz
frederik.kunz's picture

Joined: 2005-03-21
Posts: 37
Posted: Sat, 2005-05-21 00:16
mindless wrote:
what files do you have in modules/core/test/data and test/data/localUploadDir ?

On both systems I got:

drwxr-xr-x  2 apache apache   128 19. Mai 22:13 CVS
-rw-r--r--  1 apache apache 56410  2. Okt 2003  director.dcr
-rw-r--r--  1 apache apache 66468  2. Okt 2003  flash.swf
drwxr-xr-x  3 apache apache   232 19. Mai 22:12 localUploadDir
-rw-r--r--  1 apache apache   355 16. Apr 10:39 MailHelperTest.tpl
-rw-r--r--  1 apache apache  1083 18. Mai 2002  test1.gif
-rw-r--r--  1 apache apache  1966 18. Mai 2002  test1.jpg
-rw-r--r--  1 apache apache 15068  2. Nov 2002  test2.gif
-rw-r--r--  1 apache apache  2959 18. Mai 19:05 test[3].gif
-rw-r--r--  1 apache apache 26020  2. Nov 2002  test4.gif

and

drwxr-xr-x  2 apache apache   128 19. Mai 22:12 CVS
-rw-r--r--  1 apache apache  1083 28. Feb 01:49 test1.gif
-rw-r--r--  1 apache apache  1966 28. Feb 01:49 test1.jpg
-rw-r--r--  1 apache apache 15068 28. Feb 01:49 test2.gif
-rw-r--r--  1 apache apache  2959 18. Mai 19:05 test[3].gif
-rw-r--r--  1 apache apache 26020 28. Feb 01:49 test4.gif
 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sun, 2005-05-22 08:48

These should be fixed. Try the next nightly and let me know if they're not working for you.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-05-22 11:52

thanks. works on my system.
(i still get add sub-album in the testgetitemadminviews test, but that's another story)

 
frederik.kunz
frederik.kunz's picture

Joined: 2005-03-21
Posts: 37
Posted: Sun, 2005-05-22 14:03

While things have improved on my first system, it got worse on my second.
See attachments for zipped report pages.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-05-22 14:16

@second: did you access the system once with https and once with http?

perhaps you should inform pelle (rewrite module tests).