From 6f21d2291234df9e47d399e65a7f2ee97ede2178 Mon Sep 17 00:00:00 2001 From: cnc Date: Wed, 3 Jun 2026 22:37:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=82=E8=80=83=E6=89=80=E6=9C=89=E5=88=86?= =?UTF-8?q?=E7=BB=84=EF=BC=8C=E5=AE=8C=E6=88=90=E5=B0=BD=E9=87=8F=E5=A4=9A?= =?UTF-8?q?=E7=9A=84=E5=86=85=E5=AE=B9=EF=BC=9A=E7=BB=93=E8=AE=BA=E4=B8=BA?= =?UTF-8?q?=20native=20RS274=20=E8=A1=A5=E9=BD=90=E6=B3=A8=E9=87=8A?= =?UTF-8?q?=E7=99=BE=E5=88=86=E5=8F=B7=E9=94=99=E8=AF=AF=E8=A6=86=E7=9B=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test-linuxcnc-rs274-native.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test-linuxcnc-rs274-native.sh b/test-linuxcnc-rs274-native.sh index 0e76828..6b6ec7c 100755 --- a/test-linuxcnc-rs274-native.sh +++ b/test-linuxcnc-rs274-native.sh @@ -300,6 +300,8 @@ done # numbers, and non-leading ATAN argument slashes. bad_character_error_cases=( "linuxcnc_bad_character_bang_error|Bad character '!' used" + "linuxcnc_commented_percent_error|Bad character '%' used" + "linuxcnc_mid_program_percent_error|Bad character '%' used" "linuxcnc_bad_character_middle_n_word_error|Bad character 'n' used" "linuxcnc_comment_prefixed_n_word_error|Bad character 'n' used" "linuxcnc_comment_prefixed_spaced_n_word_error|Bad character 'n' used" @@ -328,11 +330,14 @@ done # Source basis: LinuxCNC src/emc/rs274ngc/interp_read.cc read_text() # rejects EOF without the matching percent/program end and overlong file # lines; read_n_number() rejects malformed N-line numbers through -# read_integer_unsigned(). +# read_integer_unsigned(); src/emc/rs274ngc/interp_internal.cc +# close_and_downcase() rejects unclosed and nested parenthesis comments. read_text_error_cases=( "linuxcnc_file_ended_no_program_end_error|File ended with no percent sign" "linuxcnc_file_ended_no_percent_error|File ended with no percent sign" "linuxcnc_bad_n_number_format_error|Bad format unsigned integer" + "linuxcnc_unclosed_comment_error|Unclosed comment found" + "linuxcnc_nested_comment_error|Nested comment found" ) for case in "${read_text_error_cases[@]}"; do fixture=${case%%|*}