Test case: usr.bin/indent/functional_test:elsecomment

Metadata

Standard output

Executing command [ cp /usr/tests/usr.bin/indent/elsecomment.0 /usr/tests/usr.bin/indent/elsecomment.0.pro /usr/tests/usr.bin/indent/elsecomment.0.stdout . ]
Executing command [ sed -e /\$FreeBSD.*\$/d elsecomment.0.stdout ]
Executing command [ /usr/bin/indent -Pelsecomment.0.pro ]

Standard error

Fail: stdout does not match golden output
--- output_file.parsed	2018-05-25 20:03:33.974940000 +0000
+++ /tmp/kyua.JMmJD6/2126/work/check.8tsDaK/stdout	2018-05-25 20:03:33.977021000 +0000
@@ -2,8 +2,7 @@
 void 
 t(void)
 {
-	if (0)
-	{
+	if (0) {
 
 	}			/* Old indent would remove the following
 				 * blank line */
@@ -12,8 +11,7 @@
 	 * test
 	 */
 
-	if (1)
-		;
+	if (1);
 	else			/* Old indent would get very confused here */
 	{
 
Files left in work directory after failure: elsecomment.0, elsecomment.0.pro, elsecomment.0.stdout, input_file.parsed, output_file.parsed