Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
ab72ccd7
Commit
ab72ccd7
authored
Jan 20, 2017
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
It's more useful to emit the shell's stdout/stderr before failing
the exit code test, than not doing so afterwards.
parent
4908ac9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
vtc.c
bin/varnishtest/vtc.c
+2
-2
No files found.
bin/varnishtest/vtc.c
View file @
ab72ccd7
...
@@ -485,6 +485,8 @@ cmd_shell_engine(struct vtclog *vl, int ok,
...
@@ -485,6 +485,8 @@ cmd_shell_engine(struct vtclog *vl, int ok,
VSB_putc
(
vsb
,
c
);
VSB_putc
(
vsb
,
c
);
}
while
(
c
!=
EOF
);
}
while
(
c
!=
EOF
);
r
=
pclose
(
fp
);
r
=
pclose
(
fp
);
AZ
(
VSB_finish
(
vsb
));
vtc_dump
(
vl
,
4
,
"shell_out"
,
VSB_data
(
vsb
),
VSB_len
(
vsb
));
vtc_log
(
vl
,
4
,
"shell_status = 0x%04x"
,
WEXITSTATUS
(
r
));
vtc_log
(
vl
,
4
,
"shell_status = 0x%04x"
,
WEXITSTATUS
(
r
));
if
(
WIFSIGNALED
(
r
))
if
(
WIFSIGNALED
(
r
))
vtc_log
(
vl
,
4
,
"shell_signal = %d"
,
WTERMSIG
(
r
));
vtc_log
(
vl
,
4
,
"shell_signal = %d"
,
WTERMSIG
(
r
));
...
@@ -495,8 +497,6 @@ cmd_shell_engine(struct vtclog *vl, int ok,
...
@@ -495,8 +497,6 @@ cmd_shell_engine(struct vtclog *vl, int ok,
"shell_exit not as expected: got 0x%04x wanted 0x%04x"
,
"shell_exit not as expected: got 0x%04x wanted 0x%04x"
,
WEXITSTATUS
(
r
),
ok
);
WEXITSTATUS
(
r
),
ok
);
}
}
AZ
(
VSB_finish
(
vsb
));
vtc_dump
(
vl
,
4
,
"shell_out"
,
VSB_data
(
vsb
),
VSB_len
(
vsb
));
if
(
expect
!=
NULL
)
{
if
(
expect
!=
NULL
)
{
if
(
strstr
(
VSB_data
(
vsb
),
expect
)
==
NULL
)
if
(
strstr
(
VSB_data
(
vsb
),
expect
)
==
NULL
)
vtc_fatal
(
vl
,
vtc_fatal
(
vl
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment