comparison src/libvterm/t/run-test.pl @ 20480:d0bf39eb2b07 v8.2.0794

patch 8.2.0794: libvterm code lags behind the upstream version Commit: https://github.com/vim/vim/commit/d098b824c10cc20dc55e18c22c4991f61826006e Author: Bram Moolenaar <Bram@vim.org> Date: Mon May 18 21:12:59 2020 +0200 patch 8.2.0794: libvterm code lags behind the upstream version Problem: Libvterm code lags behind the upstream version. Solution: Include revisions 743 - 747.
author Bram Moolenaar <Bram@vim.org>
date Mon, 18 May 2020 21:15:04 +0200
parents 9ad473b50471
children dc88c690f19b
comparison
equal deleted inserted replaced
20479:c4b13b8932fb 20480:d0bf39eb2b07
138 "# Actual: $response\n"; 138 "# Actual: $response\n";
139 $exitcode = 1; 139 $exitcode = 1;
140 } 140 }
141 } 141 }
142 # Assertions start with '?' 142 # Assertions start with '?'
143 elsif( $line =~ s/^\?([a-z]+.*?=)\s+// ) { 143 elsif( $line =~ s/^\?([a-z]+.*?=)\s*// ) {
144 do_onetest if defined $command; 144 do_onetest if defined $command;
145 145
146 my ( $assertion ) = $1 =~ m/^(.*)\s+=/; 146 my ( $assertion ) = $1 =~ m/^(.*)\s+=/;
147 147
148 $hin->print( "\?$assertion\n" ); 148 $hin->print( "\?$assertion\n" );
149 my $response = <$hout>; defined $response or wait, die "Test harness failed - $?\n"; 149 my $response = <$hout>; defined $response or wait, die "Test harness failed - $?\n";
150 chomp $response; 150 chomp $response; $response =~ s/^\s+|\s+$//g;
151 151
152 if( $response ne $line ) { 152 if( $response ne $line ) {
153 print "# Assert $assertion failed:\n" . 153 print "# Assert $assertion failed:\n" .
154 "# Expected: $line\n" . 154 "# Expected: $line\n" .
155 "# Actual: $response\n"; 155 "# Actual: $response\n";