Module Name:    src
Committed By:   kre
Date:           Wed May 19 22:20:34 UTC 2021

Modified Files:
        src/tests/usr.bin/printf: printf.sh

Log Message:
Fix a truly embarrassing quoting screwup.   There is an explanation as
to why this didn't cause any failures, but I won't go into it here.
This was detected by the about to be committed printf changes.

While here also correct a couple of minor comment layout issues.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/tests/usr.bin/printf/printf.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/usr.bin/printf/printf.sh
diff -u src/tests/usr.bin/printf/printf.sh:1.6 src/tests/usr.bin/printf/printf.sh:1.7
--- src/tests/usr.bin/printf/printf.sh:1.6	Fri Apr 24 14:29:19 2020
+++ src/tests/usr.bin/printf/printf.sh	Wed May 19 22:20:34 2021
@@ -1,4 +1,4 @@
-# $NetBSD: printf.sh,v 1.6 2020/04/24 14:29:19 kre Exp $
+# $NetBSD: printf.sh,v 1.7 2021/05/19 22:20:34 kre Exp $
 #
 # Copyright (c) 2018 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -1071,13 +1071,13 @@ g_floats()
 	expect 1.00000		%#g	1		# p = 6, x = 0 :  %.5f
 	expect -0.500000	%#g	-0.5		# p = 6, x = -1:  %.6f
 
-	expect 0.001234		%#.4g	0.001234	# p= 4, x = -3:  %.6f
+	expect 0.001234		%#.4g	0.001234	# p= 4, x = -3 :  %.6f
 
 	expect 9999.		%#.4g	9999		# p = 4, x = 3 :  %.0f
 	expect 9999.0		%#.5g	9999		# p = 5, x = 3 :  %.1f
 
 	expect 4.4?e+03		%.3g	4444		# p = 3, x = 3 :  %.2e
-	expect 1.2e-05		%.2g	0.000012	# p = 2, x = -5:  $.1e
+	expect 1.2e-05		%.2g	0.000012	# p = 2, x = -5:  %.1e
 
 	expect 1e+10		%g	10000000000
 	expect 1e+10		%g	1e10
@@ -1558,8 +1558,8 @@ NetBSD_extensions()
 	expect 5e+01		'%.0e'		"'1"
 	expect 4.50e+01		'%.2e'		"'-1"
 	expect 4.300e+01	'%.3e'		"'+1"
-	expect 99.000000	'%f'		'"c"
-	expect 97		'%g'		'"a"
+	expect 99.000000	'%f'		'"c'
+	expect 97		'%g'		'"a'
 
 	# NetBSD (non-POSIX) format excape extensions
 	expect ''		'\e'

Reply via email to