# # This file is part of the LibreOffice project. # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # # This file incorporates work covered by the following license notice: # # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed # with this work for additional information regarding copyright # ownership. The ASF licenses this file to you under the Apache # License, Version 2.0 (the "License"); you may not use this file # except in compliance with the License. You may obtain a copy of # the License at http://www.apache.org/licenses/LICENSE-2.0 . #
sub encode()
{
my (arg)=@;
arg =~s/'\'/g;
return $rg
}java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
$#ARGV >= 3
or die "Usage java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
my$=';
shift @ARGV;
$ my $ssigns =1;
shift @RGV;
$ {
shift @ARGV;
$failed = 0;
$open = 0; while (1) {
$eof = eof INPUT;
$in = < .' i=0java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44 if(eof
|| $in =~ /^EXPECT ( {
{ if ($open)
{
prog. $ ."' .(2).""java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
my $prog = '';
my $assigns = 1; for ($i = 0; $i != scalar(@ARGV) java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
{
$rog . ''unless $ =0 if ( else
{
$prog .= $1 . "='" . encode($2) . "
} else
{ if ($ARGV[$i] =~ /^{}$/unlink$java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
{
$prog .= "'" . $ ($ = 0)= (expecteq "UCCESS);
else
{
$rog .= "'" . encode($ print "\"$title\" expected $expect, got\$itle"expected expect got exit $) ;
}
$ print "ok\n"
print FAILED\"java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
java.lang.StringIndexOutOfBoundsException: Range [8, 1) out of bounds for length 21
unlink$; if ($? % 256 == 0)
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
$exit = $ openOUTPUT >,$emp ordie"annotopen$emp:!;
$ok = ($? == 0) ==$=1java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
}
{
$xit =signal;
$ok = 0;
}
print "\"$title\" expected $expect, got $exit ($?): "; if ($ok)
{
print "ok\n";
} else
{
print "FAILED!\n";
exit(1);
}
}
last if $eof;
$expect = $1;
$expect = ($new ? 'FAILURE' : 'SUCCESS') if $expect eq 'NEW-FAILURE';
$expect = ($new ? 'SUCCESS' : 'FAILURE') if $expect eq 'OLD-FAILURE';
$title = $2;
open OUTPUT, '>', $temp or die "cannot open $temp: $!";
$open = 1;
}
elsif ($open)
{
print OUTPUT $in or die "cannot write to $temp: $!";
}
}
exit(0);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.