From f01f75ca6a0e636519750272499eb7bc1afacb33 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 3 Sep 2003 13:34:25 +0000 Subject: 2003-09-03 Joel Sherrill PR 463/tests PR 465/tests * psxhdrs/Makefile.am: Add new test cases. * psxhdrs/sync01.c, psxhdrs/sync02.c, psxhdrs/sync03.c, psxhdrs/timer07.c: New files. --- testsuites/psxtests/ChangeLog | 8 ++++++++ testsuites/psxtests/psxhdrs/Makefile.am | 8 ++++---- testsuites/psxtests/psxhdrs/sync01.c | 24 ++++++++++++++++++++++++ testsuites/psxtests/psxhdrs/sync02.c | 24 ++++++++++++++++++++++++ testsuites/psxtests/psxhdrs/sync03.c | 20 ++++++++++++++++++++ testsuites/psxtests/psxhdrs/timer07.c | 24 ++++++++++++++++++++++++ 6 files changed, 104 insertions(+), 4 deletions(-) create mode 100644 testsuites/psxtests/psxhdrs/sync01.c create mode 100644 testsuites/psxtests/psxhdrs/sync02.c create mode 100644 testsuites/psxtests/psxhdrs/sync03.c create mode 100644 testsuites/psxtests/psxhdrs/timer07.c (limited to 'testsuites') diff --git a/testsuites/psxtests/ChangeLog b/testsuites/psxtests/ChangeLog index d0c528e579..ba0bbec53d 100644 --- a/testsuites/psxtests/ChangeLog +++ b/testsuites/psxtests/ChangeLog @@ -1,3 +1,11 @@ +2003-09-03 Joel Sherrill + + PR 463/tests + PR 465/tests + * psxhdrs/Makefile.am: Add new test cases. + * psxhdrs/sync01.c, psxhdrs/sync02.c, psxhdrs/sync03.c, + psxhdrs/timer07.c: New files. + 2003-08-18 Ralf Corsepius * Makefile.am: Reflect having moved aclocal/. diff --git a/testsuites/psxtests/psxhdrs/Makefile.am b/testsuites/psxtests/psxhdrs/Makefile.am index ed047140e4..d1f646ef37 100644 --- a/testsuites/psxtests/psxhdrs/Makefile.am +++ b/testsuites/psxtests/psxhdrs/Makefile.am @@ -20,10 +20,10 @@ C_FILES = clock01.c clock02.c clock03.c clock04.c clock05.c clock06.c \ signal01.c signal02.c signal03.c signal04.c signal05.c signal06.c \ signal07.c signal08.c signal09.c signal10.c signal11.c signal12.c \ signal13.c signal14.c signal15.c signal16.c signal17.c signal18.c \ - signal19.c signal20.c signal21.c signal22.c time01.c time02.c time03.c \ - time04.c time05.c time06.c time07.c time08.c time09.c time10.c time11.c \ - time12.c time13.c timer01.c timer02.c timer03.c timer04.c timer05.c \ - timer06.c + signal19.c signal20.c signal21.c signal22.c sync01.c sync02.c sync03.c \ + time01.c time02.c time03.c time04.c time05.c time06.c time07.c time08.c \ + time09.c time10.c time11.c time12.c time13.c timer01.c timer02.c timer03.c \ + timer04.c timer05.c timer06.c timer07.c C_O_FILES = $(C_FILES:%.c=${ARCH}/%.$(OBJEXT)) SRCS = $(C_FILES) diff --git a/testsuites/psxtests/psxhdrs/sync01.c b/testsuites/psxtests/psxhdrs/sync01.c new file mode 100644 index 0000000000..3ca48a83e2 --- /dev/null +++ b/testsuites/psxtests/psxhdrs/sync01.c @@ -0,0 +1,24 @@ +/* + * This test file is used to verify that the header files associated with + * invoking this function are correct. + * + * COPYRIGHT (c) 1989-2003. + * On-Line Applications Research Corporation (OAR). + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.OARcorp.com/rtems/license.html. + * + * $Id$ + */ + +#include + +void test( void ) +{ + int fd; + int result; + + int fd = 4; + result = fsync( fd ); +} diff --git a/testsuites/psxtests/psxhdrs/sync02.c b/testsuites/psxtests/psxhdrs/sync02.c new file mode 100644 index 0000000000..f8a6568573 --- /dev/null +++ b/testsuites/psxtests/psxhdrs/sync02.c @@ -0,0 +1,24 @@ +/* + * This test file is used to verify that the header files associated with + * invoking this function are correct. + * + * COPYRIGHT (c) 1989-2003. + * On-Line Applications Research Corporation (OAR). + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.OARcorp.com/rtems/license.html. + * + * $Id$ + */ + +#include + +void test( void ) +{ + int fd; + int result; + + int fd = 4; + result = fdatasync( fd ); +} diff --git a/testsuites/psxtests/psxhdrs/sync03.c b/testsuites/psxtests/psxhdrs/sync03.c new file mode 100644 index 0000000000..442e163286 --- /dev/null +++ b/testsuites/psxtests/psxhdrs/sync03.c @@ -0,0 +1,20 @@ +/* + * This test file is used to verify that the header files associated with + * invoking this function are correct. + * + * COPYRIGHT (c) 1989-2003. + * On-Line Applications Research Corporation (OAR). + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.OARcorp.com/rtems/license.html. + * + * $Id$ + */ + +#include + +void test( void ) +{ + sync(); +} diff --git a/testsuites/psxtests/psxhdrs/timer07.c b/testsuites/psxtests/psxhdrs/timer07.c new file mode 100644 index 0000000000..d9da0b3dbe --- /dev/null +++ b/testsuites/psxtests/psxhdrs/timer07.c @@ -0,0 +1,24 @@ +/* + * This test file is used to verify that the header files associated with + * invoking this function are correct. + * + * COPYRIGHT (c) 1989-2003. + * On-Line Applications Research Corporation (OAR). + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.OARcorp.com/rtems/license.html. + * + * $Id$ + */ + +#include + +void test( void ) +{ + unsigned long usec; + unsigned result; + + usec = 0; + result = usleep( usec ); +} -- cgit v1.2.3