Patch for a couple tests with an error

jrchamp - June 16, 2009 - 16:46
Project:Drupal
Version:7.x-dev
Component:simpletest.module
Category:bug report
Priority:minor
Assigned:Unassigned
Status:closed
Description

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

#1

Dries - June 17, 2009 - 11:15

How come these fatal errors were not reported?

#2

jrchamp - June 17, 2009 - 13:24

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

yched - June 17, 2009 - 13:31

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

boombatower - June 17, 2009 - 20:48
Status:needs review» postponed

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

#5

jrchamp - June 18, 2009 - 18:56

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

#6

boombatower - June 19, 2009 - 00:25
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

System Message - June 28, 2009 - 00:40
Status:needs review» needs work

The last submitted patch failed testing.

#8

boombatower - June 28, 2009 - 02:07
Status:needs work» needs review

First part was already committed.

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

#9

webchick - June 28, 2009 - 03:08
Status:needs review» fixed

Committed. Thanks!

#10

System Message - July 12, 2009 - 03:10
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.