OpenCoverageBash

Bash patch #12 - Test report of the modifications

Overview

Test Execution StatusStatistics
Passed
  0.000% (0/1)
Failed
  0.000% (0/1)
Requires Manual Checking
  0.000% (0/1)
Unknown
100.000% (1/1)
All
100.000% (1/1)
CategoryRemoved LinesInserted LinesTotal
Modified lines executed:
  0.000% (0/1)
  5.263% (2/38)
  5.128% (2/39)
Modified lines not executed:
  0.000% (0/1)
 21.053% (8/38)
 20.513% (8/39)
Source code lines not covered:
100.000% (1/1)
 73.684% (28/38)
 74.359% (29/39)

List of tests executing the changes

Execution NameState
Self testUnknown

Patch File

Showing: 

Modified File: CWRU/CWRU.chlog

LineTestsDifference Output
diff --git a/CWRU/CWRU.chlog b/CWRU/CWRU.chlog
index d6e8e0f1..5962116b 100644
--- a/CWRU/CWRU.chlog
+++ b/CWRU/CWRU.chlog
@@ -14847,4 +14847,22 @@ pcomplete.c
14847 command, and find any programmable completions for it. Here right
14848 now, could be moved to attempt_shell_completion later if we need
14849 to do more analysis of the expanded line. We'll see how it works
14850
-
No equivalent source code line in the reference code can be identified.
- in practice.
14850
-
+ in practice. (Disabled for now.)
14851
-
+
14852
-
+ 1/16
14853
-
+ ----
14854
-
+parse.y
14855
-
+ - grammar: when timing the null command, make sure to turn off the
14856
-
+ flags in parser_state (PST_REDIRLIST) that make_simple_command sets
14857
-
+ when given a NULL second argument, since it assumes that it's going
14858
-
+ to turn those off when it gets the next word of the simple command
14859
-
+ (which it never gets in this case). Fixes bug reported by
14860
-
+ Anti Räis <antirais@gmail.com>
14861
-
+
14862
-
+ 1/19
14863
-
+ ----
14864
-
+lib/readline/rltty.c
14865
-
+ - prepare_terminal_settings (termios/termio): if there is a function
14866
-
+ bound to the VDISCARD character in the current keymap, set VDISCARD
14867
-
+ to _POSIX_VDISABLE while readline is active. From a report from
14868
-
+ Rhialto <rhialto@falu.nl>

Modified File: lib/readline/rltty.c

LineTestsDifference Output
diff --git a/lib/readline/rltty.c b/lib/readline/rltty.c
index 6d777ad8..6d907192 100644
--- a/lib/readline/rltty.c
+++ b/lib/readline/rltty.c
@@ -503,6 +503,9 @@ set_tty_settings (int tty, TIOTYPE *tiop)
503 static void
504 prepare_terminal_settings (int meta_flag, TIOTYPE oldtio, TIOTYPE *tiop)
505 {
506
0
+ int sc;
507
0
+ Keymap kmap;
508
0
+
506 ➡ 509 _rl_echoing_p = (oldtio.c_lflag & ECHO);
507 ➡ 510 #if defined (ECHOCTL)
508 ➡ 511 _rl_echoctl = (oldtio.c_lflag & ECHOCTL);
@@ -559,6 +562,20 @@ prepare_terminal_settings (int meta_flag, TIOTYPE oldtio, TIOTYPE *tiop)
559 ➡ 562 tiop->c_cc[VDSUSP] = _POSIX_VDISABLE;
560 ➡ 563 #endif
561 ➡ 564
565
-
+ /* Conditionally disable some other tty special characters if there is a
566
-
+ key binding for them in the current keymap. Readline ordinarily doesn't
567
-
+ bind these characters, but an application or user might. */
568
-
+#if defined (VI_MODE)
569
0
+ kmap = (rl_editing_mode == vi_mode) ? vi_insertion_keymap : _rl_keymap;
570
-
+#else
571
-
+ kmap = _rl_keymap;
572
-
+#endif
573
0
+#if defined (VDISCARD)
574
0
+ sc = tiop->c_cc[VDISCARD];
575
0
+ if (sc != _POSIX_VDISABLE && kmap[(unsigned char)sc].type == ISFUNC)
576
0
+ tiop->c_cc[VDISCARD] = _POSIX_VDISABLE;
577
-
+#endif /* VDISCARD */
578
-
+
562 ➡ 579 #endif /* TERMIOS_TTY_DRIVER && _POSIX_VDISABLE */
563 ➡ 580 }
564 ➡ 581 #endif /* !NEW_TTY_DRIVER */

Modified File: parse.y

LineTestsDifference Output
diff --git a/parse.y b/parse.y
index f75d8d8e..29b59f81 100644
--- a/parse.y
+++ b/parse.y
@@ -1245,6 +1245,7 @@ pipeline_command: pipeline
1245 token_to_read = '\n';
1246 else if ($2 == ';')
1247 token_to_read = ';';
1248
1
Executed by:
  • Self test
+ parser_state &= ~PST_REDIRLIST; /* make_simple_command sets this */
1248 ➡ 1249 }
1249 ➡ 1250 | BANG list_terminator
1250 ➡ 1251 {
@@ -1265,6 +1266,7 @@ pipeline_command: pipeline
1265 ➡ 1266 token_to_read = '\n';
1266 ➡ 1267 if ($2 == ';')
1267 ➡ 1268 token_to_read = ';';
1269
1
Executed by:
  • Self test
+ parser_state &= ~PST_REDIRLIST; /* make_simple_command sets this */
1268 ➡ 1270 }
1269 ➡ 1271 ;
1270 ➡ 1272

Generated by Squish Coco 4.1.2