aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2020-11-24 16:41:49 -0700
committerJosh Rahm <joshuarahm@gmail.com>2020-11-24 16:41:49 -0700
commitc29e0323020e0f96932d0f9b09747d5b2e28e5a6 (patch)
treec6100f1a4702d14548f5b82d72afb85340711a68 /tests
parent0c0f5c3d8397ba5168f0cd01b25ba70c238b36e0 (diff)
downloadstm32l4-c29e0323020e0f96932d0f9b09747d5b2e28e5a6.tar.gz
stm32l4-c29e0323020e0f96932d0f9b09747d5b2e28e5a6.tar.bz2
stm32l4-c29e0323020e0f96932d0f9b09747d5b2e28e5a6.zip
Changes to painic. It now prints the stack at the time of failure (if logging is initialized).
Diffstat (limited to 'tests')
-rw-r--r--tests/test_lib.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_lib.c b/tests/test_lib.c
index e9361c4..118a863 100644
--- a/tests/test_lib.c
+++ b/tests/test_lib.c
@@ -6,16 +6,16 @@ TEST(lib, hexify)
char buf[10];
hexify(0xaaaaaaaa, buf);
- ASSERT_EQ_STR(buf, "AAAAAAAA");
+ ASSERT_EQ_STR(buf, "aaaaaaaa");
hexify(0xdddddddd, buf);
- ASSERT_EQ_STR(buf, "DDDDDDDD");
+ ASSERT_EQ_STR(buf, "dddddddd");
hexify(0x02468ace, buf);
- ASSERT_EQ_STR(buf, "02468ACE");
+ ASSERT_EQ_STR(buf, "02468ace");
hexify(0xdeadbeef, buf);
- ASSERT_EQ_STR(buf, "DEADBEEF");
+ ASSERT_EQ_STR(buf, "deadbeef");
return 0;
}