Mercurial > molko
diff tests/test-error.c @ 410:1bf7d6669f0a
tests: switch to libdt
author | David Demelier <markand@malikania.fr> |
---|---|
date | Fri, 09 Sep 2022 13:30:34 +0200 |
parents | 0ea90751a62d |
children | 8f59201dc76b |
line wrap: on
line diff
--- a/tests/test-error.c Fri Sep 09 09:27:17 2022 +0200 +++ b/tests/test-error.c Fri Sep 09 13:30:34 2022 +0200 @@ -18,20 +18,18 @@ #include <core/error.h> -#include "test.h" +#include <dt.h> -RX_TEST_CASE(basics, simple) +static void +test_basics_simple(void) { errorf("Failed: %d", 123); - RX_STR_REQUIRE_EQUAL("Failed: 123", error()); + DT_EQ_STR("Failed: 123", error()); } -static const struct rx_test_case tests[] = { - TEST(basics, simple) -}; - int -main(int argc, char **argv) +main(void) { - return TEST_RUN_ALL(tests, argc, argv); + DT_RUN(test_basics_simple); + DT_SUMMARY(); }