Alex helped us with this same issue.&nbsp; We ended up going with his advice, and installing Ruby 1.8.5 for use by CC.&nbsp; It works.<br><br><div><span class="gmail_quote">On 7/6/07, <b class="gmail_sendername">Allen Riddle</b> &lt;
<a href="mailto:ariddle@sunbridgecapital.com">ariddle@sunbridgecapital.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">










<div link="blue" vlink="blue" style="" lang="EN-US">

<div>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Thanks Tim. After doing some digging, it
turns out that Ruby 1.8.6 doesn't return an error code if there is an
exception raised in an at_exit block. This is exactly what Test::Unit does. So
does the rake task you created work around this? Thanks for your help.</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>

<div>

<div style="margin-left: 0.5in; text-align: center;" align="center"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">

<hr align="center" size="2" width="100%">

</span></font></div>

<p style="margin-left: 0.5in;"><b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;">
 Tim Lucas
[mailto:<a href="mailto:t.lucas@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">t.lucas@gmail.com</a>] <br>
<b><span style="font-weight: bold;">Sent:</span></b> Tuesday, July 03, 2007 12:29
AM<br>
<b><span style="font-weight: bold;">To:</span></b> Jeremy Stell-Smith<br>
<b><span style="font-weight: bold;">Cc:</span></b> Allen Riddle;
<a href="mailto:cruisecontrolrb-users@rubyforge.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">cruisecontrolrb-users@rubyforge.org</a><br>
<b><span style="font-weight: bold;">Subject:</span></b> Re:
[Cruisecontrolrb-users] Build isn&#39;t failing on &quot;errors&quot;</span></font></p>

</div>

<p style="margin-left: 0.5in;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>

<div>

<p style="margin-left: 0.5in;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">On 03/07/2007, at 2:39 PM, Jeremy Stell-Smith wrote:</span></font></p>

</div>

<div>

<blockquote style="margin-top: 5pt; margin-bottom: 5pt;" type="cite">

<div>

<p style="margin-left: 0.5in;"><span><font face="Times New Roman" size="3"><span style="font-size: 12pt;">On 7/2/07, <b><span style="font-weight: bold;">Allen Riddle</span></b> &lt;<a href="mailto:ariddle@sunbridgecapital.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
ariddle@sunbridgecapital.com</a>&gt;
wrote:</span></font></span></p>

</div>

</blockquote>

<div>

<blockquote style="margin-top: 5pt; margin-bottom: 5pt;" type="cite">

<div>

<blockquote style="margin-top: 5pt; margin-bottom: 5pt;" type="cite">

<div>

<p style="margin-left: 0.5in;"><span><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Hello, I&#39;ve
set up CruiseControl.rb for our Rails app. The build is not failing even though
the unit test in question actually contains a Ruby error (wrong number of
arguments passed to a method). This doesn&#39;t come up as a &quot;failure&quot;,
but instead as an &quot;error&quot; when the unit test runs. Shouldn&#39;t CC.rb
fail the build because of this? Thanks.</span></font></span></p>

</div>

</blockquote>

<p style="margin-left: 0.5in;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>

</div>

<p style="margin-left: 0.5in;"><span><span><font face="Times New Roman" size="3"><span style="font-size: 12pt;">if your regular failures will fail the build, then it
sounds like this might be a problem w/ test/unit or ruby.</span></font></span></span></p>

</blockquote>

<p style="margin-left: 0.5in;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>

</div>

<div>

<p style="margin-left: 0.5in;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">The build must return an error exit code. If it does
not, then CC.rb does not consider it failed.</span></font></p>

</div>

<div>

<p style="margin-left: 0.5in;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>

</div>

<div>

<p style="margin-left: 0.5in;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">If it&#39;s within your own rake task you simply need to
&#39;raise&#39;:</span></font></p>

</div>

<div>

<p style="margin-left: 0.5in;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;"><a href="http://pastie.textmate.org/75604" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://pastie.textmate.org/75604
</a></span></font></p>

</div>

<div>

<p style="margin-left: 0.5in;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>

</div>

<div>

<p style="margin-left: 0.5in;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">-- tim</span></font></p>

</div>

<div>

<p style="margin-left: 0.5in;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>

</div>

</div>

</div>

</div>


<br>_______________________________________________<br>Cruisecontrolrb-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Cruisecontrolrb-users@rubyforge.org">Cruisecontrolrb-users@rubyforge.org
</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users" target="_blank">http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users</a><br><br></blockquote>
</div><br>