Steve Hay wrote: [...]
That what t/SMOKE is for. It does the job of finding such sequences for you.
I'd forgotten about that, but now that I come to try it (to see if it finds the correct result, now that I know what the correct result is :-), it seems to not work properly.
I have never tried running it on windows, it's quite possible that it doesn't work there. But I remember that Randy was successful running it. That's why we changed it to use IPC::Run. If we can fix it that would be good.
I know that the failure sequence lies in apr/ and compat/ so I ran "perl t/SMOKE apr compat".
The first time I tried it did this:
=====
[warning] Using random number seed: 1148777795 (autogenerated)
[ info] Report file: C:\Temp\mod_perl-1.99_14\smoke-report-Tue_May_25_08-59-19_2004.txt
[warning]
------------------------------------------------------------
[warning] [001-00-00] trying all tests 10 times
[ error] recorded a positive failure ('t\compat/conn_authen.t'), will try to minimize the input now
[warning] [001-01-01] trying 't\compat/conn_authen.t' on its own
iteration 1 (1 tests):
C:\apache2\perl5\bin\perl.exe C:/Temp/mod_perl-1.99_14/t/TEST t\compat/conn_authen.t
(made 1 successful reductions)
=====
What does "positive failure" mean? Why does it stop there? - does it think there is a problem with compat/conn_authen?
The logic is explained in the module's docs. If it finds a test that fails on its own, there is no point to run smoke, since it'll always fails on that test. So it doesn't to make your CPU's life shorter.
There doesn't seem to be when I run it manually, even running it after apr/pool.
I tried another two times and the output each time was exactly as above, except that it picked a different test each time to complain about -- compat/request_body then compat/request, neither of which seem to have any trouble that I'm aware of either.
Perhaps on windows it thinks that a test fails when it doesn't. It just parses the output of Test::Harness and looks for 'ok' and fails otherwise. You can run:
t/SMOKE -v ...
to get the verbose output of what it does. (it's different from -v in the t/TEST land).
-- __________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
