1 |
|
|
|
2 |
|
|
/*************************************** |
3 |
|
|
Auteur : Pierre Aubert |
4 |
|
|
Mail : pierre.aubert@lapp.in2p3.fr |
5 |
|
|
Licence : CeCILL-C |
6 |
|
|
****************************************/ |
7 |
|
|
|
8 |
|
|
#include <iostream> |
9 |
|
|
#include "phoenix_assert.h" |
10 |
|
|
#include "phoenix_whoami.h" |
11 |
|
|
|
12 |
|
|
///Test the whoami function |
13 |
|
1 |
void testStringWhoAmI(){ |
14 |
✓ |
1 |
std::string name(phoenix_whoami()); |
15 |
✓✓✓✓ ✓ |
1 |
phoenix_assert(name != ""); |
16 |
|
1 |
} |
17 |
|
|
|
18 |
|
1 |
int main(int argc, char** argv){ |
19 |
|
1 |
testStringWhoAmI(); |
20 |
|
1 |
return 0; |
21 |
|
|
} |
22 |
|
|
|