diff options
author | Enji Cooper <ngie@FreeBSD.org> | 2014-10-02 23:26:49 +0000 |
---|---|---|
committer | Enji Cooper <ngie@FreeBSD.org> | 2014-10-02 23:26:49 +0000 |
commit | 57718be8fa0bd5edc11ab9a72e68cc71982939a6 (patch) | |
tree | 544932e2a2c5a5a202b752beefba0b3e327b3858 /contrib/netbsd-tests/lib/libpthread/h_common.h | |
parent | 3fbe079a343c4122c09478f9679d9ca224f4b9c0 (diff) | |
parent | 478290db20b28ab28ce7e08cf33f1b44d82e4cb3 (diff) | |
download | src-57718be8fa0bd5edc11ab9a72e68cc71982939a6.tar.gz src-57718be8fa0bd5edc11ab9a72e68cc71982939a6.zip |
Import the NetBSD test suite from ^/vendor/NetBSD/tests/09.30.2014_20.45 ,
minus the vendor Makefiles
Provide directions for how to bootstrap the vendor sources in
FREEBSD-upgrade
MFC after 2 weeks
Discussed with: rpaulo
Sponsored by: EMC / Isilon Storage Division
Notes
Notes:
svn path=/head/; revision=272458
Diffstat (limited to 'contrib/netbsd-tests/lib/libpthread/h_common.h')
-rw-r--r-- | contrib/netbsd-tests/lib/libpthread/h_common.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/contrib/netbsd-tests/lib/libpthread/h_common.h b/contrib/netbsd-tests/lib/libpthread/h_common.h new file mode 100644 index 000000000000..f4d03bcdec9e --- /dev/null +++ b/contrib/netbsd-tests/lib/libpthread/h_common.h @@ -0,0 +1,12 @@ +#ifndef H_COMMON_H +#define H_COMMON_H + +#include <string.h> + +#define PTHREAD_REQUIRE(x) \ + do { \ + int ret = (x); \ + ATF_REQUIRE_MSG(ret == 0, "%s: %s", #x, strerror(ret)); \ + } while (0) + +#endif // H_COMMON_H |