Module Name: src Committed By: martin Date: Wed Jul 10 06:21:40 UTC 2019
Modified Files: src/tests/dev/cgd: t_cgd_aes.c Log Message: Gracefully skip test if not enough space in temporary directory. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/tests/dev/cgd/t_cgd_aes.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/tests/dev/cgd/t_cgd_aes.c diff -u src/tests/dev/cgd/t_cgd_aes.c:1.6 src/tests/dev/cgd/t_cgd_aes.c:1.7 --- src/tests/dev/cgd/t_cgd_aes.c:1.6 Fri Jan 13 21:30:39 2017 +++ src/tests/dev/cgd/t_cgd_aes.c Wed Jul 10 06:21:40 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: t_cgd_aes.c,v 1.6 2017/01/13 21:30:39 christos Exp $ */ +/* $NetBSD: t_cgd_aes.c,v 1.7 2019/07/10 06:21:40 martin Exp $ */ /*- * Copyright (c) 2016 The NetBSD Foundation, Inc. * Copyright (c) 2007 The Institute of Electrical and Electronics Engineers, Inc @@ -3565,7 +3565,12 @@ ATF_TC_BODY(cgd_aes_xts_512, tc) rump_init(); - RL(dkfd = open_disk(dkpath, imgpath, dksize)); + dkfd = open_disk(dkpath, imgpath, dksize); + if (dkfd == -1 && errno == ENOSPC) { + atf_tc_skip("not enough space"); + } else { + ATF_CHECK_MSG(dkfd != -1, "open_disk: %s", strerror(errno)); + } RL(cgdfd = open_cgd(0)); RL(configure_cgd(cgdfd, dkpath, "aes-xts", "encblkno1",