Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Docker-in-Docker (DinD) capabilities of public runners deactivated.
More info
Open sidebar
CTA-LAPP
PHOENIX_LIBS
PhoenixDL
Commits
85f0bdaf
Commit
85f0bdaf
authored
Aug 01, 2021
by
Pierre Aubert
Browse files
Add test
parent
4c58181c
Pipeline
#130400
passed with stages
in 33 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
11 deletions
+5
-11
TESTS/TEST_LIBRARY/main.cpp
TESTS/TEST_LIBRARY/main.cpp
+1
-2
TESTS/TEST_LIST_FUNCTION/main.cpp
TESTS/TEST_LIST_FUNCTION/main.cpp
+2
-2
TESTS/TEST_MANGLE_FUNCTION/main.cpp
TESTS/TEST_MANGLE_FUNCTION/main.cpp
+2
-7
No files found.
TESTS/TEST_LIBRARY/main.cpp
View file @
85f0bdaf
...
...
@@ -21,7 +21,6 @@ bool testTestLibrary(){
int
main
(
int
argc
,
char
**
argv
){
bool
b
(
testTestLibrary
());
if
(
b
){
return
0
;}
else
{
return
-
1
;}
return
b
-
1
;
}
TESTS/TEST_LIST_FUNCTION/main.cpp
View file @
85f0bdaf
...
...
@@ -15,6 +15,7 @@ bool testListFunction(){
std
::
string
libraryFile
(
TEST_LIBRARY_FILE
);
std
::
vector
<
std
::
string
>
vecFunction
;
phoenix_listLibrarySymbol
(
vecFunction
,
"someInexistingFile.so"
);
phoenix_listLibrarySymbol
(
vecFunction
,
libraryFile
);
for
(
std
::
vector
<
std
::
string
>::
iterator
it
(
vecFunction
.
begin
());
it
!=
vecFunction
.
end
();
++
it
){
...
...
@@ -28,7 +29,6 @@ bool testListFunction(){
int
main
(
int
argc
,
char
**
argv
){
bool
b
(
testListFunction
());
if
(
b
){
return
0
;}
else
{
return
-
1
;}
return
b
-
1
;
}
TESTS/TEST_MANGLE_FUNCTION/main.cpp
View file @
85f0bdaf
...
...
@@ -17,11 +17,7 @@ bool testMangleFunction(){
std
::
cout
<<
"testMangleFunction : mangeling of '"
<<
functionPrototype
<<
"' = '"
<<
mangleFunction
<<
"'"
<<
std
::
endl
;
std
::
string
expectedMangle
(
"_Z10print_archRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE"
);
bool
b
(
expectedMangle
==
mangleFunction
);
if
(
b
){
std
::
cout
<<
"OK"
<<
std
::
endl
;
}
else
{
std
::
cerr
<<
"Wrong"
<<
std
::
endl
;
}
std
::
cout
<<
"testMangleFunction : b = "
<<
b
<<
std
::
endl
;
return
b
;
}
...
...
@@ -29,7 +25,6 @@ bool testMangleFunction(){
int
main
(
int
argc
,
char
**
argv
){
bool
b
(
testMangleFunction
());
if
(
b
){
return
0
;}
else
{
return
-
1
;}
return
b
-
1
;
}
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