Skip to content

Commit

Permalink
test-hash: Do not exit check_word_hash() when there is a failure.
Browse files Browse the repository at this point in the history
This commit makes check_word_hash() run to finish even when there
is a failure during the run.  The test will still fail due to the
output check in AT_CHECK.  And developers can benefit from having
all failed hashes instead of only the first one.

Signed-off-by: Alex Wang <alexw@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
  • Loading branch information
yew011 committed Mar 4, 2015
1 parent afb5057 commit 06af0bb
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion tests/test-hash.c
Expand Up @@ -100,7 +100,6 @@ check_word_hash(uint32_t (*hash)(uint32_t), const char *name,
printf("%s(%08"PRIx32") = %08"PRIx32"\n", name, in2, out2);
printf("%d bits of output starting at bit %d "
"are both 0x%"PRIx32"\n", min_unique, ofs, bits1);
exit(1);
}
}
}
Expand Down

0 comments on commit 06af0bb

Please sign in to comment.