Commit 85f0bdaf authored by Pierre Aubert's avatar Pierre Aubert
Browse files

Add test

parent 4c58181c
Pipeline #130400 passed with stages
in 33 seconds
......@@ -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;
}
......@@ -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;
}
......@@ -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;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment