test_maps.h 369 B

12345678910111213141516171819
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _TEST_MAPS_H
  3. #define _TEST_MAPS_H
  4. #include <stdio.h>
  5. #include <stdlib.h>
  6. #define CHECK(condition, tag, format...) ({ \
  7. int __ret = !!(condition); \
  8. if (__ret) { \
  9. printf("%s(%d):FAIL:%s ", __func__, __LINE__, tag); \
  10. printf(format); \
  11. exit(-1); \
  12. } \
  13. })
  14. extern int skips;
  15. #endif