Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Jul 2020 01:32:37 +0000 (UTC)
From:      Yuri Pankov <yuripv@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r363138 - head/usr.bin/sed/tests
Message-ID:  <202007130132.06D1WbD3004853@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuripv
Date: Mon Jul 13 01:32:37 2020
New Revision: 363138
URL: https://svnweb.freebsd.org/changeset/base/363138

Log:
  sed/multi_test: print comment for current test, not next one
  
  This is visible when e.g. 8.20 is failing:
  
  not ok 96 8.20 # \ in y command
  
  8.20's comment should be '[ as an s delimiter and its escapes'.

Modified:
  head/usr.bin/sed/tests/multi_test.sh

Modified: head/usr.bin/sed/tests/multi_test.sh
==============================================================================
--- head/usr.bin/sed/tests/multi_test.sh	Mon Jul 13 01:28:45 2020	(r363137)
+++ head/usr.bin/sed/tests/multi_test.sh	Mon Jul 13 01:32:37 2020	(r363138)
@@ -92,9 +92,9 @@ result()
 		cp current.out $REGRESS/${TESTNAME}
 	fi
 	if diff -c $REGRESS/${TESTNAME} current.out ; then
-		echo "ok $MARK $TESTNAME # $TODO$COMMENT"
+		echo "ok $MARK $TESTNAME # $TODO$OCOMMENT"
 	else
-		echo "not ok $MARK $TESTNAME # $TODO$COMMENT"
+		echo "not ok $MARK $TESTNAME # $TODO$OCOMMENT"
 	fi 1>&4 2>&5
 }
 
@@ -102,6 +102,7 @@ result()
 mark()
 {
 	[ $MARK -gt 0 ] && result
+	OCOMMENT=$COMMENT
 	MARK=`expr $MARK + 1`
 	TESTNAME=$1
 	exec 1>&4 2>&5



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202007130132.06D1WbD3004853>