Re: PATCH for bug #47199
| From: | Johannes Schlüter | Date: | Tue, 09 Feb 2010 15:38:44 +0000 |
| Subject: | Re: PATCH for bug #47199 | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-46969@lists.php.net to get a copy of this message | ||
Hi,
On Tue, 2010-02-09 at 20:11 +0500, Sokolov Evgeniy wrote:
> > did you really run this test and was it successful? - doesn't looklike
> > for me.
> I just run "php tests/27_bug47199.phpt" and check the result output.
> Is this correct way?
The easy way to run it using the test Framework is by executing
make test TESTS=tests/27_bug47199.phpt
from your build directory which will prepare some environment things and
then run run-tests.php from PHP's source directory which has the
implementation of our test system, you can also run it directly to have
more ocntrol. See README.TESTING in the php-src root folder and
http://qa.php.net/write-test.php for more details on
the test system.
If you run your test it will tell you it failed as you're tests EXPECTF
section has to look something like this:
--EXPECTF--
DELETE FROM %s WHERE null_field IS NULL AND not_null_field=2;
Done
Mind the %s place holder there!
> > And please also add a link to the patch to the bug report
> Can it be link on pastebin.org? For example
> http://pastebin.org/88880
I don't know how persistent these pastebins are,
http://news.php.net/php.internals/46965 might
be an alternative link
though :-)
johannes