[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bison-Announce] Bison 3.5.91 released [beta]
From: |
Akim Demaille |
Subject: |
Re: [Bison-Announce] Bison 3.5.91 released [beta] |
Date: |
Sun, 3 May 2020 11:27:26 +0200 |
> Le 2 mai 2020 à 17:05, Denis Excoffier <address@hidden> a écrit :
>
>> On 2020-05-02 15:41, Akim Demaille wrote:
>>
>> Denis,
> Great!
:-P
Until we have something better, I'm installing this.
Cheers!
commit a279813664b0411fd219ae8a2f193acda47ac7c7
Author: Akim Demaille <address@hidden>
Date: Sat May 2 07:23:58 2020 +0200
tests: beware of mbswidth portability issues
Shy away from these issues on Cygwin.
Reported Denis Excoffier.
https://lists.gnu.org/r/bug-bison/2020-05/msg00003.html
* tests/diagnostics.at (Tabulations and multibyte characters): Split
in two.
diff --git a/tests/diagnostics.at b/tests/diagnostics.at
index 150dd00b..6c23ddb6 100644
--- a/tests/diagnostics.at
+++ b/tests/diagnostics.at
@@ -220,15 +220,14 @@ exp: an\005error.
AT_TEST([[Tabulations and multibyte characters]],
[[%%
-exp: a b c d e f g h
+exp: a b c d e f g
a: { }
b: { }
c: {------------}
d: {éééééééééééé}
-e: {∇⃗×𝐸⃗ = -∂𝐵⃗/∂t}
-f: { 42 }
-g: { "฿¥$€₦" }
-h: { 🐃 }
+e: { 42 }
+f: { "฿¥$€₦" }
+g: { 🐃 }
]],
[0],
[[input.y:11.4-17: <warning>warning:</warning> empty rule without %empty
[<warning>-Wempty-rule</warning>]
@@ -248,23 +247,38 @@ input.y:14.4-17: <warning>warning:</warning> empty rule
without %empty [<warning
| <warning>^~~~~~~~~~~~~~</warning>
| <fixit-insert>%empty</fixit-insert>
input.y:15.4-17: <warning>warning:</warning> empty rule without %empty
[<warning>-Wempty-rule</warning>]
- 15 | e: <warning>{∇⃗×𝐸⃗ = -∂𝐵⃗/∂t}</warning>
+ 15 | e: <warning>{ 42 }</warning>
| <warning>^~~~~~~~~~~~~~</warning>
| <fixit-insert>%empty</fixit-insert>
input.y:16.4-17: <warning>warning:</warning> empty rule without %empty
[<warning>-Wempty-rule</warning>]
- 16 | f: <warning>{ 42 }</warning>
+ 16 | f: <warning>{ "฿¥$€₦" }</warning>
| <warning>^~~~~~~~~~~~~~</warning>
| <fixit-insert>%empty</fixit-insert>
input.y:17.4-17: <warning>warning:</warning> empty rule without %empty
[<warning>-Wempty-rule</warning>]
- 17 | g: <warning>{ "฿¥$€₦" }</warning>
+ 17 | g: <warning>{ 🐃 }</warning>
| <warning>^~~~~~~~~~~~~~</warning>
| <fixit-insert>%empty</fixit-insert>
-input.y:18.4-17: <warning>warning:</warning> empty rule without %empty
[<warning>-Wempty-rule</warning>]
- 18 | h: <warning>{ 🐃 }</warning>
+input.y: <warning>warning:</warning> fix-its can be applied. Rerun with
option '--update'. [<warning>-Wother</warning>]
+]])
+
+# Likewise, but currently not portable to Cygwin.
+# https://lists.gnu.org/r/bug-bison/2020-05/msg00003.html.
+case `uname -a` in
+ (CYGWIN*);;
+ (*)
+AT_TEST([[Tabulations and multibyte characters]],
+[[%%
+e: {∇⃗×𝐸⃗ = -∂𝐵⃗/∂t}
+]],
+[0],
+[[input.y:10.4-17: <warning>warning:</warning> empty rule without %empty
[<warning>-Wempty-rule</warning>]
+ 10 | e: <warning>{∇⃗×𝐸⃗ = -∂𝐵⃗/∂t}</warning>
| <warning>^~~~~~~~~~~~~~</warning>
| <fixit-insert>%empty</fixit-insert>
input.y: <warning>warning:</warning> fix-its can be applied. Rerun with
option '--update'. [<warning>-Wother</warning>]
]])
+;;
+esac
## --------------- ##