Bug 898691 - Avoid wasted work in TestTextFormatter.cpp. r=jlebar

This commit is contained in:
Po-Chun Chang 2013-08-05 19:43:26 -04:00
parent 6133f659d2
commit a65b61e71e

View File

@ -29,9 +29,12 @@ int main()
0x20, 0x33, 0x33, 0x33, 0x20, 0x33,
0x33, 0x33, 0x20, 0x48, 0x65, 0x6C,
0x6C, 0x6F};
for(uint32_t i=0;i<out.Length();i++)
if(uout[i] != expected[i])
for(uint32_t i=0;i<out.Length();i++) {
if(uout[i] != expected[i]) {
test_ok = false;
break;
}
}
printf(test_ok? "nsTextFormatter: OK\n": "nsTextFormatter: FAIL\n");
}