Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
932b5897
Commit
932b5897
authored
16 years ago
by
Dan Fandrich
Browse files
Options
Downloads
Patches
Plain Diff
Changed the long logfile elision code in runtests.pl to properly handle
lines ending in \r.
parent
27c282a6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGES
+8
-0
8 additions, 0 deletions
CHANGES
tests/runtests.pl
+12
-25
12 additions, 25 deletions
tests/runtests.pl
with
20 additions
and
25 deletions
CHANGES
+
8
−
0
View file @
932b5897
...
...
@@ -6,6 +6,14 @@
Changelog
Daniel Fandrich (23 Jul 2008)
- Changed the long logfile elision code in runtests.pl to properly handle
lines ending in \r.
- Changed references to TRUE and FALSE in the curl_easy_setopt man page to
1 and zero, respectively, since TRUE and FALSE aren't part of the
libcurl API.
Daniel Stenberg (23 Jul 2008)
- I went over the curl_easy_setopt man page and replaced most references to
non-zero with the fixed value of 1. We should strive at making options
...
...
This diff is collapsed.
Click to expand it.
tests/runtests.pl
+
12
−
25
View file @
932b5897
...
...
@@ -2963,11 +2963,10 @@ open(CMDLOG, ">$CURLLOG") ||
#######################################################################
# Display the contents of the given file. Line endings are canonicalized
# and excessively long files are
truncat
ed
# and excessively long files are
elid
ed
sub
displaylogcontent
{
my
(
$file
)
=
@_
;
if
(
open
(
SINGLE
,
"
<
$file
"))
{
my
$lfcount
;
my
$linecount
=
0
;
my
$truncate
;
my
@tail
;
...
...
@@ -2975,29 +2974,17 @@ sub displaylogcontent {
$string
=~
s/\r\n/\n/g
;
$string
=~
s/[\r\f\032]/\n/g
;
$string
.=
"
\n
"
unless
(
$string
=~
/\n$/
);
$lfcount
=
$string
=~
tr/\n//
;
if
(
$lfcount
==
1
)
{
$string
=~
s/\n//
;
$string
=~
s/\s*\!$//
;
$linecount
++
;
if
(
$truncate
)
{
push
@tail
,
"
$string
\n
";
}
else
{
logmsg
"
$string
\n
";
}
}
else
{
for
my
$line
(
split
("
\n
",
$string
))
{
$line
=~
s/\s*\!$//
;
$linecount
++
;
if
(
$truncate
)
{
push
@tail
,
"
$line
\n
";
}
else
{
logmsg
"
$line
\n
";
}
}
}
$truncate
=
$linecount
>
1000
;
$string
=~
tr/\n//
;
for
my
$line
(
split
("
\n
",
$string
))
{
$line
=~
s/\s*\!$//
;
if
(
$truncate
)
{
push
@tail
,
"
$line
\n
";
}
else
{
logmsg
"
$line
\n
";
}
$linecount
++
;
$truncate
=
$linecount
>
1000
;
}
}
if
(
@tail
)
{
logmsg
"
=== File too long: lines here were removed
\n
";
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment