Skip to content

Commit

Permalink
more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
prokushev committed May 21, 2022
1 parent b7d02ac commit 3f8debc
Show file tree
Hide file tree
Showing 12 changed files with 204 additions and 4 deletions.
31 changes: 31 additions & 0 deletions OS2/tests/test238/legal
@@ -0,0 +1,31 @@
Copyright (C) 2002-2009 osFree

All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of the osFree nor the names of its contributors may be
used to endorse or promote products derived from this software without
specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

OS/2 is a registered trademark of International Business Machines Corp.

In our documentation unless otherwise stated its only used to describe a
system built to have similar functionality with IBM OS/2.
15 changes: 15 additions & 0 deletions OS2/tests/test238/makefile
@@ -0,0 +1,15 @@
#
# (c) osFree project,
#

PROJ = test238
TRGT = $(PROJ).exe
DESC = test application
#defines object file names in format objname.$(O)
srcfiles = $(p)test238$(e)
# defines additional options for C compiler
ADD_COPT = -i=$(MYDIR)..$(SEP)include
STUB=$(FILESDIR)$(SEP)os2$(SEP)mdos$(SEP)os2stub.exe
DEST = os2$(SEP)test

!include $(%ROOT)/mk/appsos2_cmd.mk
6 changes: 5 additions & 1 deletion OS2/tests/test238/test238.c
Expand Up @@ -2,7 +2,8 @@

#include <os2.h>


int main(VOID)
{

BOOL fSuccess; /* success indicator */

Expand Down Expand Up @@ -51,3 +52,6 @@ lMaxDepth = 1L;
lNumHits = GpiCorrelateChain(hps, PICKSEL_VISIBLE, &pptlPick, lMaxHits,

lMaxDepth, &alSegTag);

return 0;
}
31 changes: 31 additions & 0 deletions OS2/tests/test239/legal
@@ -0,0 +1,31 @@
Copyright (C) 2002-2009 osFree

All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of the osFree nor the names of its contributors may be
used to endorse or promote products derived from this software without
specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

OS/2 is a registered trademark of International Business Machines Corp.

In our documentation unless otherwise stated its only used to describe a
system built to have similar functionality with IBM OS/2.
15 changes: 15 additions & 0 deletions OS2/tests/test239/makefile
@@ -0,0 +1,15 @@
#
# (c) osFree project,
#

PROJ = test239
TRGT = $(PROJ).exe
DESC = test application
#defines object file names in format objname.$(O)
srcfiles = $(p)test239$(e)
# defines additional options for C compiler
ADD_COPT = -i=$(MYDIR)..$(SEP)include
STUB=$(FILESDIR)$(SEP)os2$(SEP)mdos$(SEP)os2stub.exe
DEST = os2$(SEP)test

!include $(%ROOT)/mk/appsos2_cmd.mk
7 changes: 6 additions & 1 deletion OS2/tests/test239/test239.c
Expand Up @@ -2,7 +2,8 @@

#include <os2.h>


int main(VOID)
{

BOOL fSuccess; /* success indicator */

Expand Down Expand Up @@ -69,3 +70,7 @@ lNumHits = GpiCorrelateFrom(hps, lFirstSegment, lLastSegment,
PICKSEL_VISIBLE, &pptlPick, lMaxHits,

lMaxDepth, &alSegTag);

return 0;

}
31 changes: 31 additions & 0 deletions OS2/tests/test240/legal
@@ -0,0 +1,31 @@
Copyright (C) 2002-2009 osFree

All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of the osFree nor the names of its contributors may be
used to endorse or promote products derived from this software without
specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

OS/2 is a registered trademark of International Business Machines Corp.

In our documentation unless otherwise stated its only used to describe a
system built to have similar functionality with IBM OS/2.
15 changes: 15 additions & 0 deletions OS2/tests/test240/makefile
@@ -0,0 +1,15 @@
#
# (c) osFree project,
#

PROJ = test240
TRGT = $(PROJ).exe
DESC = test application
#defines object file names in format objname.$(O)
srcfiles = $(p)test240$(e)
# defines additional options for C compiler
ADD_COPT = -i=$(MYDIR)..$(SEP)include
STUB=$(FILESDIR)$(SEP)os2$(SEP)mdos$(SEP)os2stub.exe
DEST = os2$(SEP)test

!include $(%ROOT)/mk/appsos2_cmd.mk
5 changes: 4 additions & 1 deletion OS2/tests/test240/test240.c
Expand Up @@ -2,7 +2,8 @@

#include <os2.h>


int main(VOID)
{

BOOL fSuccess; /* success indicator */

Expand Down Expand Up @@ -65,3 +66,5 @@ lNumHits = GpiCorrelateSegment(hps, lSegment, PICKSEL_VISIBLE,
&pptlPick, lMaxHits, lMaxDepth,

&alSegTag);
return 0;
}
31 changes: 31 additions & 0 deletions OS2/tests/test241/legal
@@ -0,0 +1,31 @@
Copyright (C) 2002-2009 osFree

All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of the osFree nor the names of its contributors may be
used to endorse or promote products derived from this software without
specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

OS/2 is a registered trademark of International Business Machines Corp.

In our documentation unless otherwise stated its only used to describe a
system built to have similar functionality with IBM OS/2.
15 changes: 15 additions & 0 deletions OS2/tests/test241/makefile
@@ -0,0 +1,15 @@
#
# (c) osFree project,
#

PROJ = test241
TRGT = $(PROJ).exe
DESC = test application
#defines object file names in format objname.$(O)
srcfiles = $(p)test241$(e)
# defines additional options for C compiler
ADD_COPT = -i=$(MYDIR)..$(SEP)include
STUB=$(FILESDIR)$(SEP)os2$(SEP)mdos$(SEP)os2stub.exe
DEST = os2$(SEP)test

!include $(%ROOT)/mk/appsos2_cmd.mk
6 changes: 5 additions & 1 deletion OS2/tests/test241/test241.c
Expand Up @@ -4,7 +4,8 @@

#include <os2.h>


int main(VOID)
{

HPS hps; /* presentation space handle */

Expand Down Expand Up @@ -33,3 +34,6 @@ bmih.cBitCount = 32*32;


hbm = GpiCreateBitmap(hps, &bmih, 0L, NULL, NULL);

return 0;
}

0 comments on commit 3f8debc

Please sign in to comment.