Module Name:    src
Committed By:   kre
Date:           Thu Jul 11 03:51:18 UTC 2024

Modified Files:
        src/tests/lib/libc/string: t_bm.c

Log Message:
More ATF_CHECK() (etc) change fallout.

Really, developers making infrastructure changes like this should do
a full build before committing the change, and handle any fallout from
the change.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libc/string/t_bm.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/libc/string/t_bm.c
diff -u src/tests/lib/libc/string/t_bm.c:1.1 src/tests/lib/libc/string/t_bm.c:1.2
--- src/tests/lib/libc/string/t_bm.c:1.1	Mon Jun 23 10:53:20 2014
+++ src/tests/lib/libc/string/t_bm.c	Thu Jul 11 03:51:18 2024
@@ -1,4 +1,4 @@
-/* $Id: t_bm.c,v 1.1 2014/06/23 10:53:20 shm Exp $ */
+/* $Id: t_bm.c,v 1.2 2024/07/11 03:51:18 kre Exp $ */
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$Id: t_bm.c,v 1.1 2014/06/23 10:53:20 shm Exp $");
+__RCSID("$Id: t_bm.c,v 1.2 2024/07/11 03:51:18 kre Exp $");
 
 #include <atf-c.h>
 #include <stdio.h>
@@ -77,10 +77,10 @@ ATF_TC_BODY(bm, tc)
 	bm_pat *pattern;
 	
 	for (ts = 0; ts < sizeof(testcases)/sizeof(t_testcase); ts++) {
-		ATF_CHECK(pattern = bm_comp((const u_char *)testcases[ts].pattern,
+		ATF_CHECK((pattern = bm_comp((const u_char *)testcases[ts].pattern),
 		  strlen(testcases[ts].pattern), (const u_char *)testcases[ts].freq));
 
-		ATF_REQUIRE(text = strdup(testcases[ts].text));
+		ATF_REQUIRE((text = strdup(testcases[ts].text)));
 		off = bm_exec(pattern, (u_char *)text, strlen(text));
 
 		if (testcases[ts].match == -1)

Reply via email to