<div dir="ltr"><div>commit f0054ac856059183f6c7bc3f9e8a80965a8c0368 (HEAD, master)</div><div>Author: Mattias Ryrlén <<a href="mailto:mattiasr@op5.com">mattiasr@op5.com</a>></div><div>Date:   Thu Aug 29 14:34:39 2013 +0200</div>
<div><br></div><div>    YES! test: build on machines with only one cpu</div><div><br></div><div>    There might be someone out there who still have only one cpu/core, let those</div><div>    build too.</div><div><br></div>
<div>    Signed-off-by: Mattias Ryrlén <<a href="mailto:mattiasr@op5.com">mattiasr@op5.com</a>></div><div><br></div><div>diff --git a/lib/test-nsutils.c b/lib/test-nsutils.c</div><div>index 1a23ee1..f835d67 100644</div>
<div>--- a/lib/test-nsutils.c</div><div>+++ b/lib/test-nsutils.c</div><div>@@ -31,10 +31,10 @@ int main(int argc, char **argv)</div><div>        asprintf(&s1, "arg varg foo %d", 12);</div><div>        s2 = mkstr("arg varg foo %d", 12);</div>
<div>        ok_str(s1, s2, "mkstr() must build proper strings");</div><div>-       if (online_cpus() > 1) {</div><div>+       if (online_cpus() > 0) {</div><div>                t_pass("%d online cpus detected", online_cpus());</div>
<div>        } else {</div><div>-               t_fail("Do you really have only one cpu core?");</div><div>+               t_fail("No online cpus detected");</div><div>        }</div><div>        return t_end();</div>
<div> }</div><div><br></div>-- <br>Vänliga hälsningar / Best Regards<br>Mattias Ryrlén<br><br>__________________________<br>op5 AB<br>Första Långgatan 19<br>SE-413 27 Göteborg<br>Mobil: +46 735-17 70 99<br>Support: +46 31-774 09 24<br>
<a href="http://www.op5.com">www.op5.com</a>
</div>