aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Bachmeyer <jcb@gnu.org>2024-09-23 18:44:45 -0500
committerJacob Bachmeyer <jcb@gnu.org>2024-09-23 18:44:45 -0500
commit417b59616a5ce4c5e752c34e11fe5ddc0f41b80c (patch)
treec0cad92a43d34396cfae8b39b53c41cbb6e93f07
parent49818909fb3e712d9a63a542263f88581347ba9c (diff)
downloaddejagnu-master.zip
dejagnu-master.tar.gz
dejagnu-master.tar.bz2
Work around bug in AIX 7.1 awk in report card toolHEADmaster
-rw-r--r--ChangeLog7
-rw-r--r--commands/report-card.awk3
2 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 20e9479..754ecd4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2024-09-23 Jacob Bachmeyer <jcb@gnu.org>
+
+ * commands/report-card.awk: When preparing to compute totals and
+ setting $0 to the list of possible test results, explicitly set NF
+ to 9 to work around a bug in AIX 7.1 awk, which fails to update NF
+ when $0 is assigned from a constant string.
+
2024-09-18 Jacob Bachmeyer <jcb@gnu.org>
* dejagnu: Adapt Zsh compatibility prologue from configure.
diff --git a/commands/report-card.awk b/commands/report-card.awk
index 415e74a..a88b5cb 100644
--- a/commands/report-card.awk
+++ b/commands/report-card.awk
@@ -1,5 +1,5 @@
# report-card.awk -- Test summary tool
-# Copyright (C) 2018, 2021 Free Software Foundation, Inc.
+# Copyright (C) 2018, 2021, 2024 Free Software Foundation, Inc.
#
# This file is part of DejaGnu.
#
@@ -132,6 +132,7 @@ $1 ~ /:$/ { sub(/:$/, "", $1); Totals["tp", Tool, Pass, $1]++ }
END {
$0 = ("PASS FAIL KPASS KFAIL XPASS XFAIL UNSUPPORTED UNRESOLVED UNTESTED")
+ NF = 9 # work around bug in AIX 7.1 awk
for (i = 1; i in Tools; i++)
for (j = 1; ("t", Tools[i], j) in Passes; j++)
for (k = 1; k <= NF; k++) {