summaryrefslogtreecommitdiffstats
path: root/contrib/netbsd-tests/lib/libc/gen/t_dir.c
diff options
context:
space:
mode:
authorbr <br@FreeBSD.org>2016-05-25 14:08:21 +0000
committerbr <br@FreeBSD.org>2016-05-25 14:08:21 +0000
commit010eabe65eeeda35634480f8693454f5a6f43d67 (patch)
treec5e7e090bba29ac473bcaae5bfd9038c1eab2490 /contrib/netbsd-tests/lib/libc/gen/t_dir.c
parent34285663b015e226c166b62add64e0e829bb5343 (diff)
downloadFreeBSD-src-010eabe65eeeda35634480f8693454f5a6f43d67.zip
FreeBSD-src-010eabe65eeeda35634480f8693454f5a6f43d67.tar.gz
Remove legacy brk and sbrk from RISC-V.
Discussed with: andrew Sponsored by: DARPA, AFRL Sponsored by: HEIF5
Diffstat (limited to 'contrib/netbsd-tests/lib/libc/gen/t_dir.c')
-rw-r--r--contrib/netbsd-tests/lib/libc/gen/t_dir.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/netbsd-tests/lib/libc/gen/t_dir.c b/contrib/netbsd-tests/lib/libc/gen/t_dir.c
index f888db9..a6ab9e8 100644
--- a/contrib/netbsd-tests/lib/libc/gen/t_dir.c
+++ b/contrib/netbsd-tests/lib/libc/gen/t_dir.c
@@ -111,7 +111,8 @@ ATF_TC_BODY(seekdir_basic, tc)
closedir(dp);
}
-#ifndef __aarch64__ /* There is no sbrk on AArch64 */
+/* There is no sbrk on AArch64 and RISC-V */
+#if !defined(__aarch64__) && !defined(__riscv__)
ATF_TC(telldir_leak);
ATF_TC_HEAD(telldir_leak, tc)
{
@@ -161,7 +162,7 @@ ATF_TP_ADD_TCS(tp)
{
ATF_TP_ADD_TC(tp, seekdir_basic);
-#ifndef __aarch64__
+#if !defined(__aarch64__) && !defined(__riscv__)
ATF_TP_ADD_TC(tp, telldir_leak);
#endif
OpenPOWER on IntegriCloud