Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
LEFEBVREJP email
radix
Commits
c0fabf63
Commit
c0fabf63
authored
Mar 28, 2018
by
LEFEBVREJP email
Browse files
Adding unit test coverage of search_env_path.
parent
730e8c5d
Pipeline
#12769
failed with stages
in 6 minutes and 3 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
radixcore/tests/tstSystem.cc
View file @
c0fabf63
...
...
@@ -205,3 +205,19 @@ TEST(GetPaths, Basic)
EXPECT_EQ
(
"a"
,
paths
[
0
]);
}
}
TEST
(
System
,
SearchEnvPath
)
{
std
::
string
app
;
std
::
string
blessed
;
#ifdef _WIN32
app
=
"where.exe"
;
blessed
=
"c:
\\
Windows
\\
System32
\\
where.exe"
;
#else
app
=
"ls"
;
blessed
=
"/usr/bin/ls"
;
#endif
std
::
string
path
=
search_env_path
(
app
);
EXPECT_EQ
(
blessed
,
path
);
}
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment