Commit 8c636c12 authored by James Zern's avatar James Zern

simd_cmp_impl,TestSimd*Arg: break on failure

check for googletest failures as well as mismatches. this greatly
reduces the error output and time to failure.

BUG=aomedia:371

Change-Id: Ic617905430a8ec39fbee2af9ce6655a8ef6796c0
parent 07441df3
......@@ -795,7 +795,8 @@ void TestSimd1Arg(uint32_t iterations, uint32_t mask, uint32_t maskwidth,
FAIL() << "Internal error: Unknown intrinsic function " << name;
}
for (unsigned int count = 0; count < iterations && !error; count++) {
for (unsigned int count = 0;
count < iterations && !error && !testing::Test::HasFailure(); count++) {
for (unsigned int c = 0; c < sizeof(CArg) / sizeof(uint16_t); c++)
s[c] = rnd.Rand16();
......@@ -914,7 +915,8 @@ void TestSimd2Args(uint32_t iterations, uint32_t mask, uint32_t maskwidth,
FAIL() << "Internal error: Unknown intrinsic function " << name;
}
for (unsigned int count = 0; count < iterations && !error; count++) {
for (unsigned int count = 0;
count < iterations && !error && !testing::Test::HasFailure(); count++) {
for (unsigned int c = 0; c < sizeof(CArg1) / sizeof(uint16_t); c++)
s1[c] = rnd.Rand16();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment