/* * (C)omment * All Rights Reserved */ #include #define OLD(msg, data, len) \ if (msgb_func(msg) != len) { \ printf("%s:%d ERROR! with %d\n", \ __func__, __LINE__, (int) len); \ abort(); \ } static void test_error() { static const uint8_t res[] = { 0x00, 0x01, 0x21 }; struct msgb *msg; printf("Testing for error\n"); msg = test_complete(); OLD(msg, res, ARRAY_SIZE(res)); msgb_free(msg); }