posixtest.h 717 B

12345678910111213141516171819202122232425
  1. /*
  2. * Copyright (c) 2002, Intel Corporation. All rights reserved.
  3. * Created by: julie.n.fleischer REMOVE-THIS AT intel DOT com
  4. * This file is licensed under the GPL license. For the full content
  5. * of this license, see the COPYING file at the top level of this
  6. * source tree.
  7. */
  8. /*
  9. * return codes
  10. */
  11. #define PTS_PASS 0
  12. #define PTS_FAIL 1
  13. #define PTS_UNRESOLVED 2
  14. #define PTS_UNSUPPORTED 4
  15. #define PTS_UNTESTED 5
  16. #ifndef ARRAY_SIZE
  17. #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof(arr[0]))
  18. #endif
  19. #define PTS_ATTRIBUTE_NORETURN __attribute__((noreturn))
  20. #define PTS_ATTRIBUTE_UNUSED __attribute__((unused))
  21. #define PTS_ATTRIBUTE_UNUSED_RESULT __attribute__((warn_unused_result))