Sorry for sending the patch , I saw that utime.c was not added :( , here is the updated patch .
Thank you On Sun, Dec 2, 2018 at 9:58 AM Shashvat Jain <shashvatjain2...@gmail.com> wrote: > Hello , > I just added the test for utime.h header files > the patch for the change has been attached here, > > > Thank you > Regards > > > ============================================================ > > From 48d40d771c684af848a26efb1fff8a8d6e110c95 Mon Sep 17 00:00:00 2001 > From: Shashvat Jain <shashvatjain2...@gmail.com> > Date: Sat, 1 Dec 2018 12:57:44 -0500 > Subject: [PATCH] psxhdrs : Add POSIX API Signature Compliance Tests for > utime.h (GCI 2018) > > --- > testsuites/psxtests/Makefile.am | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/testsuites/psxtests/Makefile.am > b/testsuites/psxtests/Makefile.am > index 553b259..8c527a8 100644 > --- a/testsuites/psxtests/Makefile.am > +++ b/testsuites/psxtests/Makefile.am > @@ -1069,6 +1069,7 @@ lib_a_SOURCES = psxhdrs/devctl/posix_devctl.c \ > psxhdrs/unistd/setsid.c psxhdrs/unistd/setuid.c \ > psxhdrs/unistd/sleep.c psxhdrs/unistd/sync.c psxhdrs/unistd/ualarm.c \ > psxhdrs/unistd/usleep.c psxhdrs/sys/mman/mlockall.c \ > + psxhdrs/utime/utime.c \ > psxhdrs/sys/mman/mlock.c psxhdrs/sys/mman/mmap.c \ > psxhdrs/sys/mman/mprotect.c psxhdrs/sys/mman/msync.c \ > psxhdrs/sys/mman/munlockall.c psxhdrs/sys/mman/munlock.c \ > -- > 1.8.3.1 >
From fb0e059d3ac9cbc150e0b9b280f26a2a4855d026 Mon Sep 17 00:00:00 2001 From: Shashvat Jain <shashvatjain2...@gmail.com> Date: Sun, 2 Dec 2018 20:36:54 -0500 Subject: [PATCH] psxhdrs:Add POSIX conformance test for utime.h (GCI 2018) --- testsuites/psxtests/Makefile.am | 1 + testsuites/psxtests/psxhdrs/utime/utime.c | 41 +++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 testsuites/psxtests/psxhdrs/utime/utime.c diff --git a/testsuites/psxtests/Makefile.am b/testsuites/psxtests/Makefile.am index 553b259..8c527a8 100644 --- a/testsuites/psxtests/Makefile.am +++ b/testsuites/psxtests/Makefile.am @@ -1069,6 +1069,7 @@ lib_a_SOURCES = psxhdrs/devctl/posix_devctl.c \ psxhdrs/unistd/setsid.c psxhdrs/unistd/setuid.c \ psxhdrs/unistd/sleep.c psxhdrs/unistd/sync.c psxhdrs/unistd/ualarm.c \ psxhdrs/unistd/usleep.c psxhdrs/sys/mman/mlockall.c \ + psxhdrs/utime/utime.c \ psxhdrs/sys/mman/mlock.c psxhdrs/sys/mman/mmap.c \ psxhdrs/sys/mman/mprotect.c psxhdrs/sys/mman/msync.c \ psxhdrs/sys/mman/munlockall.c psxhdrs/sys/mman/munlock.c \ diff --git a/testsuites/psxtests/psxhdrs/utime/utime.c b/testsuites/psxtests/psxhdrs/utime/utime.c new file mode 100644 index 0000000..fd0c795 --- /dev/null +++ b/testsuites/psxtests/psxhdrs/utime/utime.c @@ -0,0 +1,41 @@ +/** + * @file + * @brief utime() API Conformance Test + */ + + /* + * COPYRIGHT (c) 2018. + * Shashvat Jain + * + * Permission to use, copy, modify, and/or distribute this software + * for any purpose with or without fee is hereby granted. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL + * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR + * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES + * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, + * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, + * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +#ifdef HAVE_CONFIG_H + #include "config.h" +#endif + +#include <sys/types.h> + +#include <utime.h> + +int test( void ); + +int test( void ) +{ + int result; + const struct utimbuf buff; + const char path="/tmp/myfile"; + + result = utime(path,&buff); + + return result; +} -- 1.8.3.1
_______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel