Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
senf
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor 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
wiback
senf
Commits
dcea738e
Commit
dcea738e
authored
17 years ago
by
g0dil
Browse files
Options
Downloads
Patches
Plain Diff
Utils/Daemon: Adjust unit-test 'argv' parameter to make the test compile again
Console: Fix names which have been removed in the last commit
parent
6e697dad
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Console/testServer.cc
+5
-4
5 additions, 4 deletions
Console/testServer.cc
Utils/Daemon/Daemon.test.cc
+5
-5
5 additions, 5 deletions
Utils/Daemon/Daemon.test.cc
with
10 additions
and
9 deletions
Console/testServer.cc
+
5
−
4
View file @
dcea738e
...
...
@@ -41,11 +41,12 @@
namespace
{
void
fn
(
std
::
ostream
&
output
,
senf
::
console
::
ParseCommandInfo
const
&
command
)
{
senf
::
console
::
CommandNode
::
Arguments
::
iterator
i
(
command
.
arguments
().
begin
());
senf
::
console
::
CommandNode
::
Arguments
::
iterator
i_end
(
command
.
arguments
().
end
());
typedef
senf
::
console
::
ParseCommandInfo
::
ArgumentsRange
::
iterator
iterator
;
iterator
i
(
command
.
arguments
().
begin
());
iterator
i_end
(
command
.
arguments
().
end
());
for
(;
i
!=
i_end
;
++
i
)
{
senf
::
console
::
ParseCommandInfo
::
ArgumentsRange
::
value_type
::
iterator
j
(
i
->
begin
());
senf
::
console
::
ParseCommandInfo
::
ArgumentsRange
::
value_type
::
iterator
j_end
(
i
->
end
());
iterator
::
value_type
::
iterator
j
(
i
->
begin
());
iterator
::
value_type
::
iterator
j_end
(
i
->
end
());
for
(;
j
!=
j_end
;
++
j
)
output
<<
j
->
value
()
<<
' '
;
}
...
...
This diff is collapsed.
Click to expand it.
Utils/Daemon/Daemon.test.cc
+
5
−
5
View file @
dcea738e
...
...
@@ -71,13 +71,13 @@ namespace {
}
};
int
myMain
(
int
argc
,
char
const
**
argv
)
int
myMain
(
int
argc
,
char
**
argv
)
{
MyDaemon
instance
;
return
instance
.
start
(
argc
,
argv
);
}
int
run
(
int
argc
,
char
const
**
argv
)
int
run
(
int
argc
,
char
**
argv
)
{
int
pid
(
::
fork
());
if
(
pid
<
0
)
throw
senf
::
SystemException
(
"::fork()"
);
...
...
@@ -93,9 +93,9 @@ namespace {
BOOST_AUTO_UNIT_TEST
(
testDaemon
)
{
char
const
*
args
[]
=
{
"run"
,
"--console-log=testDaemon.log,none"
,
"--pid-file=testDaemon.pid"
};
char
*
args
[]
=
{
"run"
,
"--console-log=testDaemon.log,none"
,
"--pid-file=testDaemon.pid"
};
BOOST_CHECK_EQUAL
(
run
(
sizeof
(
args
)
/
sizeof
(
*
args
),
args
),
0
);
BOOST_CHECK
(
!
boost
::
filesystem
::
exists
(
"invalid.log"
)
);
...
...
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