Download & Extend

Patch for a couple tests with an error

Project:Drupal core
Version:7.x-dev
Component:simpletest.module
Category:bug report
Priority:minor
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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

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

AttachmentSizeStatusTest resultOperations
drupal_test_fixes.patch1.39 KBIdleFailed: Failed to apply patch.View details

Comments

#1

How come these fatal errors were not reported?

#2

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()

#3

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

#4

Status:needs review» postponed

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

#5

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

#6

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...

#7

Status:needs review» needs work

The last submitted patch failed testing.

#8

Status:needs work» needs review

First part was already committed.

AttachmentSizeStatusTest resultOperations
493296-fixes.patch764 bytesIdlePassed: 11630 passes, 0 fails, 0 exceptionsView details

#9

Status:needs review» fixed

Committed. Thanks!

#10

Status:fixed» closed (fixed)

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

nobody click here