modules/php/php.test:
* incorrect array structure (fatal errors)

modules/simpletest/tests/xmlrpc.test:
* incorrectly labels an assert

CommentFileSizeAuthor
#8 493296-fixes.patch764 bytesboombatower
drupal_test_fixes.patch1.39 KBjrchamp

Comments

dries’s picture

How come these fatal errors were not reported?

jrchamp’s picture

Maybe my setup is strange, but I enabled the simpletest module and tried to do a run through of all of the tests. It ran out of memory a couple times, so I attempted to continue from the last completed test.

Running the first PHP test without the array structure changes yields:

Fatal error: Unsupported operand types in modules/simpletest/drupal_web_test_case.php on line 679

Clicking continue yields the following (with no failed tests, just "The test run did not successfully finish."):

Undefined offset: 0 Notice drupal_web_test_case.php 679 DrupalWebTestCase->drupalCreateNode()

yched’s picture

It's a know problem that fatal errors in tests result in tests simply being skipped (less 'passes'), but no fail or warning.
#443154: Fatal errors in tests not reported as failures

boombatower’s picture

Status: Needs review » Postponed

Seems we should fix the issue referenced in #3 and re-evaluate this issue at that point.

jrchamp’s picture

@boombatower: Alright, so you plan to use the existing PHP filter fatal error as the test mechanism for the issue referenced in #3?

boombatower’s picture

Status: Postponed » Needs review

I suppose that is right, once other is ready it will fail due to these...so we can either patch them all in one shot in other issue or patch these now as long as it doesn't fail.

Let bot review...

Status: Needs review » Needs work

The last submitted patch failed testing.

boombatower’s picture

Status: Needs work » Needs review
StatusFileSize
new764 bytes

First part was already committed.

webchick’s picture

Status: Needs review » Fixed

Committed. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.