diff options
author | Daisuke Nojiri <dnojiri@chromium.org> | 2016-05-06 14:38:06 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-05-10 19:41:47 -0700 |
commit | 099eeb9b978c70128bc2ec99cfdddf39e44a8249 (patch) | |
tree | 59f9c2cf419871e946ae9ed092a924ea9a465881 /tests/bdb_sprw_test.c | |
parent | f3f9e00ef037695c4e792948effa1253f680c118 (diff) | |
download | vboot-stabilize-8337.B.tar.gz |
test: Make TEST_* report test locationstabilize-8337.B
This patch converts TEST_* functions to macros, which print file name
and line # of the check. This will allow us to locate a failed test
quickly.
New TEST_* macros also automatically generate a test name if
testname == NULL. This will save us time to think of a name for
every single check we write in a test.
BUG=none
BRANCH=tot
TEST=make runtests
Change-Id: Ibdeb99681985c3f348836d256fa3484f2f0c315f
Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/343233
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'tests/bdb_sprw_test.c')
-rw-r--r-- | tests/bdb_sprw_test.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/bdb_sprw_test.c b/tests/bdb_sprw_test.c index 995707da..4528751d 100644 --- a/tests/bdb_sprw_test.c +++ b/tests/bdb_sprw_test.c @@ -17,8 +17,6 @@ #include "test_common.h" #include "vboot_register.h" -#define TEST_EQ_S(result, expect) TEST_EQ(result, expect, #result "==" #expect) - static struct bdb_header *bdb, *bdb0, *bdb1; static uint32_t vboot_register; static uint32_t vboot_register_persist; |