commit dde5b8c2e5fe26be5ac7aad06fdf3c383716762f
Author: Lee Rowlands <lee.rowlands@previousnext.com.au>
Date:   Mon Jan 14 16:10:53 2013 +1000

    fail patch

diff --git a/core/modules/system/lib/Drupal/system/Tests/Upgrade/ModulesDisabledUpgradePathTest.php b/core/modules/system/lib/Drupal/system/Tests/Upgrade/ModulesDisabledUpgradePathTest.php
index c4c6f75..c85c912 100644
--- a/core/modules/system/lib/Drupal/system/Tests/Upgrade/ModulesDisabledUpgradePathTest.php
+++ b/core/modules/system/lib/Drupal/system/Tests/Upgrade/ModulesDisabledUpgradePathTest.php
@@ -53,5 +53,6 @@ public function testDisabledUpgrade() {
     require_once DRUPAL_ROOT . '/core/includes/install.inc';
     $updates = update_get_update_list();
     $this->assertEqual($updates, array(), 'No pending updates after enabling all modules.');
+    $this->assertTrue(state()->get('update_test_1_update_dependencies_run'), 'Module update dependencies resolved for disabled modules');
   }
 }
diff --git a/core/modules/system/tests/modules/update_test_1/update_test_1.install b/core/modules/system/tests/modules/update_test_1/update_test_1.install
index 22398a3..bf0beb3 100644
--- a/core/modules/system/tests/modules/update_test_1/update_test_1.install
+++ b/core/modules/system/tests/modules/update_test_1/update_test_1.install
@@ -11,6 +11,7 @@
  * @see update_test_2_update_dependencies()
  */
 function update_test_1_update_dependencies() {
+  state()->set('update_test_1_update_dependencies_run', TRUE);
   // These dependencies are used in combination with those declared in
   // update_test_2_update_dependencies() for the sole purpose of testing that
   // the results of hook_update_dependencies() are collected correctly and have
diff --git a/core/modules/system/tests/upgrade/drupal-7.all-disabled.database.php b/core/modules/system/tests/upgrade/drupal-7.all-disabled.database.php
index 26b819e..b73db60 100644
--- a/core/modules/system/tests/upgrade/drupal-7.all-disabled.database.php
+++ b/core/modules/system/tests/upgrade/drupal-7.all-disabled.database.php
@@ -18,3 +18,11 @@
   ->condition('name', array('filter', 'field', 'field_sql_storage', 'entity',
     'system', 'text', 'user'), 'NOT IN')
   ->execute();
+
+db_update('system')
+  ->fields(array(
+    'schema_version' => 0,
+  ))
+  ->condition('type', 'module')
+  ->condition('name', 'update_test_1')
+  ->execute();
