diff --git a/core/modules/system/tests/installer.test b/core/modules/system/tests/installer.test
index f076ba9..62a8aff 100644
--- a/core/modules/system/tests/installer.test
+++ b/core/modules/system/tests/installer.test
@@ -50,3 +50,30 @@ class InstallerLanguageTestCase extends WebTestBase {
   }
 
 }
+
+class InstallerRedirectTestCase extends WebTestBase {
+
+  public static function getInfo() {
+    return array(
+      'name' => 'Installer redirect test',
+      'description' => 'Tests whether removing the {system} table results in an installer redirect.',
+      'group' => 'Installer',
+    );
+  }
+
+  /**
+   * Tests whether removing the {system} table results in an installer redirect.
+   */
+  function testInstallerRedirect() {
+    // Rename the system table out of the way.
+    db_rename_table('system', 'system_temp');
+
+    // Load the main page, which should redirect to the installer.
+    $this->drupalGet('');
+    $this->assertNotIdentical(strpos($this->getUrl(), 'core/install.php'), FALSE, 'The user is redirected to the installer when the {system} table is missing.');
+
+    // Rename the system table back.
+    db_rename_table('system_temp', 'system');
+  }
+
+}
