Skip to content

Commit d48d3af

Browse files
Qinghao ShiQinghao Shi
authored andcommitted
fix a bug in greentea-client
reset "LastChar" after "tok_close" received fix the bug where greentea-client require a character input between K-V pairs
1 parent 634774f commit d48d3af

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

features/frameworks/greentea-client/source/greentea_test_env.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,7 @@ static int gettok(char *out_str, const int str_size) {
728728
if (LastChar == '}') {
729729
LastChar = greentea_getc();
730730
if (LastChar == '}') {
731+
LastChar = '!';
731732
return tok_close;
732733
}
733734
}

0 commit comments

Comments
 (0)