@@ -3,6 +3,7 @@ source [file dirname [info script]]/testing.tcl
33needs constraint jim
44needs cmd socket
55needs eval "socket pty" {lmap p [socket pty] { $p close }}
6+ constraint expr lineedit {$jim::lineedit}
67
78package require expect
89
@@ -44,7 +45,7 @@ test interactive-1.1 {basic command} -body {
4445	wait-for-prompt $p
4546}
4647
47- test interactive-1.2 {command line completion} {
48+ test interactive-1.2 {command line completion} lineedit  {
4849	set check 0
4950	set failed 0
5051	$p send "li\t"
@@ -62,7 +63,7 @@ test interactive-1.2 {command line completion} {
6263	list $check $failed
6364} {3 0}
6465
65- test interactive-1.3 {history show} -body {
66+ test interactive-1.3 {history show} -constraints lineedit - body {
6667	$p send "history show\r"
6768	$p expect {\r\n}
6869	$p expect {history show\r\n}
@@ -71,7 +72,7 @@ test interactive-1.3 {history show} -body {
7172	wait-for-prompt $p
7273}
7374
74- test interactive-1.4 {history getline} -body {
75+ test interactive-1.4 {history getline} -constraints lineedit - body {
7576	$p send "history getline {PROMPT> }\r"
7677	$p expect {\r\n}
7778	sleep 0.25
@@ -83,7 +84,7 @@ test interactive-1.4 {history getline} -body {
8384	wait-for-prompt $p
8485}
8586
86- test interactive-1.4  {history getline} -body {
87+ test interactive-1.5  {history getline} -constraints lineedit  -body {
8788	$p send "set len \[history getline {PROMPT> } buf\]\r"
8889	$p expect {\r\n}
8990	sleep 0.25
@@ -100,7 +101,7 @@ test interactive-1.4 {history getline} -body {
100101	wait-for-prompt $p
101102}
102103
103- test interactive-1.5  {insert wide character} -constraints utf8 -body {
104+ test interactive-1.6  {insert wide character} -constraints { utf8 lineedit}  -body {
104105	$p send "set x a\u1100b"
105106	# now arrow left twice over the wide char and insert another char
106107	$p send \x1bOD
@@ -115,7 +116,7 @@ test interactive-1.5 {insert wide character} -constraints utf8 -body {
115116	wait-for-prompt $p
116117}
117118
118- test interactive-1.6  {insert utf-8 combining character} -constraints utf8 -body {
119+ test interactive-1.7  {insert utf-8 combining character} -constraints { utf8 lineedit}  -body {
119120	$p send "set x x\u0300"
120121	# now arrow left twice over the combining char and "x" and insert another char
121122	$p send \x1bOD
0 commit comments