Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Chuck Atkins
KWSys
Commits
b0d91989
Commit
b0d91989
authored
Mar 13, 2006
by
Mathieu Malaterre
Browse files
ENH: Make test usable from command line
parent
eff630cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
testDynamicLoader.cxx
View file @
b0d91989
...
...
@@ -78,9 +78,15 @@ int TestDynamicLoader(const char* libname, const char* symbol, int r1, int r2, i
return
0
;
}
int
main
(
int
,
char
*
[])
int
main
(
int
argc
,
char
*
argv
[])
{
int
res
;
if
(
argc
==
3
)
{
// User specify a libname and symbol to check.
res
=
TestDynamicLoader
(
argv
[
1
],
argv
[
2
],
1
,
1
,
1
);
return
res
;
}
// Make sure that inexistant lib is giving correct result
res
=
TestDynamicLoader
(
"azerty_"
,
"foo_bar"
,
0
,
0
,
0
);
// Make sure that random binary file cannnot be assimilated as dylib
...
...
Write
Preview
Supports
Markdown
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