Index: tests/test_filters.php
===================================================================
--- tests/test_filters.php	(revision 881)
+++ tests/test_filters.php	(working copy)
@@ -236,4 +236,22 @@
 		$this->assertFalse( empty($args[0][1]->foo) );
 
 	}
+
+	function _add_at_nine($tag) {
+		$a = new MockAction();
+		add_action( $tag, array(&$a, 'filter_append'), 9, 1 );
+		return $tag;
+	}
+
+	function test_filter_addition_during_filter() {
+		$tag = rand_str();
+		$a = new MockAction();
+
+		add_action( $tag, array(&$this, '_add_at_nine'), 10, 1 );
+		add_action( $tag, array(&$a, 'filter_append'), 11, 1 );
+
+		$result = apply_filters($tag, $tag);
+		$this->assertEquals( $result, $tag . '_append', 'priority 9 action should not run after priority 10 action adds it' );
+
+	}
 }
