2005-09-13 18:40:38 +04:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <string.h>
|
|
|
|
|
2005-07-14 20:21:49 +04:00
|
|
|
#include "testlib.h"
|
2005-09-13 18:40:38 +04:00
|
|
|
#include "testdp.h"
|
2005-07-14 20:21:49 +04:00
|
|
|
|
2006-07-07 17:54:29 +04:00
|
|
|
extern int simple();
|
2007-03-21 14:16:32 +03:00
|
|
|
#ifndef NO_DEEPSRC
|
2007-03-16 17:34:25 +03:00
|
|
|
extern int simple2();
|
2007-03-21 14:16:32 +03:00
|
|
|
#endif
|
2006-10-10 05:25:58 +04:00
|
|
|
extern "C" int outlib();
|
2006-07-07 17:54:29 +04:00
|
|
|
|
2005-03-14 19:26:32 +03:00
|
|
|
int main ()
|
2006-07-07 17:54:29 +04:00
|
|
|
{
|
|
|
|
if(simple() != 123)
|
|
|
|
{
|
|
|
|
return -3;
|
|
|
|
}
|
2005-09-13 18:40:38 +04:00
|
|
|
if (strcmp(animal,"SIZZLING"))
|
|
|
|
{
|
|
|
|
fprintf(stderr,"Get definitions from a subdir did not work\n");
|
|
|
|
return -2;
|
|
|
|
}
|
2005-07-14 20:21:49 +04:00
|
|
|
if(TestLib() != 1.0)
|
|
|
|
{
|
|
|
|
return -1;
|
|
|
|
}
|
2006-10-10 05:25:58 +04:00
|
|
|
if(outlib() != 456)
|
|
|
|
{
|
|
|
|
return -4;
|
|
|
|
}
|
2007-03-21 14:16:32 +03:00
|
|
|
#ifndef NO_DEEPSRC
|
2007-03-16 17:34:25 +03:00
|
|
|
if(simple2() != 789)
|
|
|
|
{
|
|
|
|
return -5;
|
|
|
|
}
|
2007-03-21 14:16:32 +03:00
|
|
|
#endif
|
2005-03-14 19:26:32 +03:00
|
|
|
return 0;
|
|
|
|
}
|