mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-04 12:52:15 +00:00
Only build/run hsearch_basic and hsearch_r_basic on NetBSD
hdestroy1 is not present on FreeBSD Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
3c3136b1dd
commit
b3a6b001d0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=272890
@ -75,6 +75,7 @@ __RCSID("$NetBSD: t_hsearch.c,v 1.4 2014/07/20 20:17:21 christos Exp $");
|
||||
|
||||
#define REQUIRE_ERRNO(x) ATF_REQUIRE_MSG(x, "%s", strerror(errno))
|
||||
|
||||
#if defined(__NetBSD__)
|
||||
ATF_TC(hsearch_basic);
|
||||
ATF_TC_HEAD(hsearch_basic, tc)
|
||||
{
|
||||
@ -123,6 +124,7 @@ ATF_TC_BODY(hsearch_basic, tc)
|
||||
|
||||
hdestroy1(free, NULL);
|
||||
}
|
||||
#endif
|
||||
|
||||
ATF_TC(hsearch_duplicate);
|
||||
ATF_TC_HEAD(hsearch_duplicate, tc)
|
||||
@ -229,6 +231,7 @@ ATF_TC_BODY(hsearch_two, tc)
|
||||
hdestroy();
|
||||
}
|
||||
|
||||
#if defined(__NetBSD__)
|
||||
ATF_TC(hsearch_r_basic);
|
||||
ATF_TC_HEAD(hsearch_r_basic, tc)
|
||||
{
|
||||
@ -276,6 +279,7 @@ ATF_TC_BODY(hsearch_r_basic, tc)
|
||||
|
||||
hdestroy1_r(&t, free, NULL);
|
||||
}
|
||||
#endif
|
||||
|
||||
ATF_TC(hsearch_r_duplicate);
|
||||
ATF_TC_HEAD(hsearch_r_duplicate, tc)
|
||||
@ -385,12 +389,16 @@ ATF_TC_BODY(hsearch_r_two, tc)
|
||||
ATF_TP_ADD_TCS(tp)
|
||||
{
|
||||
|
||||
#if defined(__NetBSD__)
|
||||
ATF_TP_ADD_TC(tp, hsearch_basic);
|
||||
#endif
|
||||
ATF_TP_ADD_TC(tp, hsearch_duplicate);
|
||||
ATF_TP_ADD_TC(tp, hsearch_nonexistent);
|
||||
ATF_TP_ADD_TC(tp, hsearch_two);
|
||||
|
||||
#if defined(__NetBSD__)
|
||||
ATF_TP_ADD_TC(tp, hsearch_r_basic);
|
||||
#endif
|
||||
ATF_TP_ADD_TC(tp, hsearch_r_duplicate);
|
||||
ATF_TP_ADD_TC(tp, hsearch_r_nonexistent);
|
||||
ATF_TP_ADD_TC(tp, hsearch_r_two);
|
||||
|
Loading…
Reference in New Issue
Block a user