2 Copyright © 2008-2009, The AROS Development Team. All rights reserved.
6 #include <proto/exec.h>
8 #include <proto/peropener.h>
9 #include <proto/perid.h>
11 int main (int argc
, char ** argv
)
13 struct Library
*base1
, *base2
;
16 FPuts(Output(), (STRPTR
)"Testing peropener.library\n");
18 base1
=OpenLibrary((STRPTR
)"peropener.library",0);
19 base2
=OpenLibrary((STRPTR
)"peropener.library",0);
21 FPrintf(Output(), (STRPTR
)"base1=%lx, base2=%lx\n", base1
, base2
);
28 FPuts(Output(), (STRPTR
)"\nTesting perid.library\n");
30 base1
=OpenLibrary((STRPTR
)"perid.library",0);
31 base2
=OpenLibrary((STRPTR
)"perid.library",0);
33 FPrintf(Output(), (STRPTR
)"base1=%lx, base2=%lx\n", base1
, base2
);
35 seglist
= LoadSeg((CONST_STRPTR
)"peropenertest_child");
36 if (seglist
!= (BPTR
)NULL
)
38 RunCommand(seglist
, 10*1024, "\n", -1);
43 FPrintf(Output(), (STRPTR
)"Failed to load peropenertest_child\n");