Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
674f9fb1
Commit
674f9fb1
authored
13 years ago
by
Nat Goodspeed
Browse files
Options
Downloads
Patches
Plain Diff
Add LLLeap unit test for invalid length prefix from child stdout.
parent
e8f463ef
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/llcommon/tests/llleap_test.cpp
+18
-4
18 additions, 4 deletions
indra/llcommon/tests/llleap_test.cpp
with
18 additions
and
4 deletions
indra/llcommon/tests/llleap_test.cpp
+
18
−
4
View file @
674f9fb1
...
...
@@ -235,6 +235,20 @@ namespace tut
template
<
>
template
<
>
void
object
::
test
<
5
>
()
{
set_test_name
(
"bad stdout len prefix"
);
NamedTempFile
script
(
"py"
,
"import sys
\n
"
"sys.stdout.write('5a2:something')
\n
"
);
CaptureLog
log
(
LLError
::
LEVEL_WARN
);
waitfor
(
LLLeap
::
create
(
get_test_name
(),
sv
(
list_of
(
PYTHON
)(
script
.
getName
()))));
ensure_contains
(
"error log line"
,
log
.
messageWith
(
"invalid protocol"
),
"5a2:"
);
}
template
<
>
template
<
>
void
object
::
test
<
6
>
()
{
set_test_name
(
"empty plugin vector"
);
std
::
string
threw
;
...
...
@@ -249,7 +263,7 @@ namespace tut
}
template
<
>
template
<
>
void
object
::
test
<
6
>
()
void
object
::
test
<
7
>
()
{
set_test_name
(
"bad launch"
);
// Synthesize bogus executable name
...
...
@@ -329,7 +343,7 @@ namespace tut
};
template
<
>
template
<
>
void
object
::
test
<
7
>
()
void
object
::
test
<
8
>
()
{
set_test_name
(
"round trip"
);
AckAPI
api
;
...
...
@@ -361,7 +375,7 @@ namespace tut
};
template
<
>
template
<
>
void
object
::
test
<
8
>
()
void
object
::
test
<
9
>
()
{
set_test_name
(
"many small messages"
);
// It's not clear to me whether there's value in iterating many times
...
...
@@ -409,7 +423,7 @@ namespace tut
}
template
<
>
template
<
>
void
object
::
test
<
9
>
()
void
object
::
test
<
10
>
()
{
set_test_name
(
"very large message"
);
ReqIDAPI
api
;
...
...
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