<div dir="ltr">On Sat, Aug 2, 2008 at 6:22 PM, Dean Radcliffe <span dir="ltr"><<a href="mailto:lists@ruby-forum.com">lists@ruby-forum.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Really tired of 30 second startup times to run Test::Unit tests, I would<br>
give my left pinky for a solution to running spec_server on windows. Is<br>
there some monkey patch that can avoid daemonizing the process<br>
altogether (Im fine if it runs as any kind of process at all). TIA.<br>
Error below - I have open3 and win32-process already but no dice.<br>
<br>
Dean<br>
<br>
> rake spec:server:start<br>
(in C:/ChessOnRails/trunk)<br>
Starting up spec server.<br>
Loading Rails environment<br>
Ready<br>
script/spec_server:81:in `fork': fork() function is unimplemented on<br>
this machine (NotImplementedErr<br>
or)<br>
from script/spec_server:81:in `daemonize'<br>
from script/spec_server:113<br>
<br>
</blockquote><div><br><br>No fork() love for us Windows users, try putting this into a batch file (like spec_server.bat)<br><br>@echo off<br>start "spec_server" /min ruby.exe script\spec_server<br><br>One problem is that spec_server is not trapping Ctrl-C, so you will require to use Ctrl-break to stop the minized spec_server.<br>
<br></div></div>HTH,<br>-- <br>Luis Lavena<br>AREA 17<br>-<br>Human beings, who are almost unique in having the ability to learn from <br>the experience of others, are also remarkable for their apparent <br>disinclination to do so.<br>
Douglas Adams<br>
</div>