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
This commit is contained in:
James Zern 2017-02-28 20:56:06 -08:00
Родитель 07441df3c1
Коммит 8c636c1254
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -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();