Module Name: src Committed By: rillig Date: Fri Feb 16 18:13:47 UTC 2024
Modified Files: src/tests/lib/libutil: t_snprintb.c Log Message: tests/snprintb: fix test for 8-bit field value The previous version tested the behavior on a platform with signed 'char' before the portability fix. To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18 src/tests/lib/libutil/t_snprintb.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/lib/libutil/t_snprintb.c diff -u src/tests/lib/libutil/t_snprintb.c:1.17 src/tests/lib/libutil/t_snprintb.c:1.18 --- src/tests/lib/libutil/t_snprintb.c:1.17 Fri Feb 16 18:09:16 2024 +++ src/tests/lib/libutil/t_snprintb.c Fri Feb 16 18:13:47 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: t_snprintb.c,v 1.17 2024/02/16 18:09:16 rillig Exp $ */ +/* $NetBSD: t_snprintb.c,v 1.18 2024/02/16 18:13:47 rillig Exp $ */ /* * Copyright (c) 2002, 2004, 2008, 2010, 2024 The NetBSD Foundation, Inc. @@ -32,7 +32,7 @@ #include <sys/cdefs.h> __COPYRIGHT("@(#) Copyright (c) 2008, 2010\ The NetBSD Foundation, inc. All rights reserved."); -__RCSID("$NetBSD: t_snprintb.c,v 1.17 2024/02/16 18:09:16 rillig Exp $"); +__RCSID("$NetBSD: t_snprintb.c,v 1.18 2024/02/16 18:13:47 rillig Exp $"); #include <stdio.h> #include <string.h> @@ -499,7 +499,7 @@ ATF_TC_BODY(snprintb, tc) ":\377all\0" "*other\0", 0xff00, - "0xff00<other>"); + "0xff00<all>"); // new-style format, bit-fields with no match h_snprintb(