Module Name: src Committed By: pooka Date: Wed Apr 8 09:05:16 UTC 2009
Modified Files: src/tests/fs/tmpfs: t_renamerace.c Log Message: atf_tc_fail() instead of err() To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/tests/fs/tmpfs/t_renamerace.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/fs/tmpfs/t_renamerace.c diff -u src/tests/fs/tmpfs/t_renamerace.c:1.2 src/tests/fs/tmpfs/t_renamerace.c:1.3 --- src/tests/fs/tmpfs/t_renamerace.c:1.2 Wed Apr 8 08:57:24 2009 +++ src/tests/fs/tmpfs/t_renamerace.c Wed Apr 8 09:05:16 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: t_renamerace.c,v 1.2 2009/04/08 08:57:24 pooka Exp $ */ +/* $NetBSD: t_renamerace.c,v 1.3 2009/04/08 09:05:16 pooka Exp $ */ /* * Modified for rump and atf from a program supplied @@ -9,7 +9,6 @@ #include <sys/mount.h> #include <atf-c.h> -#include <err.h> #include <errno.h> #include <fcntl.h> #include <pthread.h> @@ -67,7 +66,7 @@ ukfs_init(); fs = ukfs_mount(MOUNT_TMPFS, "tmpfs", UKFS_DEFAULTMP, 0, &args, sizeof(args)); if (fs == NULL) - err(1, "ukfs_mount"); + atf_tc_fail("could not mount tmpfs: %d (%s)", errno, strerror(errno)); pthread_create(&pt1, NULL, w1, fs); pthread_create(&pt2, NULL, w2, fs);