This looks good. Did you claim this GCI task? If yes and someone approved it, please reply with the URL.
Once you claim the GCI task, I will push this patch and approve the GCI task. Thanks. --joel On Tue, Dec 4, 2018 at 3:26 AM Abhimanyu Raghuvanshi < abhimanyuraghuvansh...@gmail.com> wrote: > From 3e8f31fdcdcd8b186891f4511584dbcec667950c Mon Sep 17 00:00:00 2001 > From: ABR290B <abhimayuraghuvansh...@gmail.com> > Date: Tue, 4 Dec 2018 14:54:02 +0530 > Subject: [PATCH] POSIX Signature Test for glob.h (GCI2018) > > --- > testsuites/psxtests/Makefile.am | 4 ++- > testsuites/psxtests/psxhdrs/glob/glob.c | 40 +++++++++++++++++++++ > testsuites/psxtests/psxhdrs/glob/globfree.c | 34 ++++++++++++++++++ > 3 files changed, 77 insertions(+), 1 deletion(-) > create mode 100644 testsuites/psxtests/psxhdrs/glob/glob.c > create mode 100644 testsuites/psxtests/psxhdrs/glob/globfree.c > > diff --git a/testsuites/psxtests/Makefile.am > b/testsuites/psxtests/Makefile.am > index 633b2efab1..fe18e92d78 100644 > --- a/testsuites/psxtests/Makefile.am > +++ b/testsuites/psxtests/Makefile.am > @@ -1137,7 +1137,9 @@ lib_a_SOURCES = psxhdrs/devctl/posix_devctl.c \ > psxhdrs/penv/fesetexceptflag.c \ > psxhdrs/penv/fesetround.c \ > psxhdrs/penv/fesetexcept.c \ > - psxhdrs/penv/feupdateenv.c > + psxhdrs/penv/feupdateenv.c \ > + psxhdrs/glob/glob.c \ > + psxhdrs/glob/globfree.c > endif > > rtems_tests_PROGRAMS = $(psx_tests) > diff --git a/testsuites/psxtests/psxhdrs/glob/glob.c > b/testsuites/psxtests/psxhdrs/glob/glob.c > new file mode 100644 > index 0000000000..81304af27a > --- /dev/null > +++ b/testsuites/psxtests/psxhdrs/glob/glob.c > @@ -0,0 +1,40 @@ > +/** > + * @file > + * @brief glob() API Conformance Test > + */ > + > +/* > + * COPYRIGHT (c) 2018. > + * Abhimanyu Raghuvanshi > + * > + * 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 <glob.h> > + > +int test(void); > + > +int test(void) > +{ > + const char *a; > + int b; > + const char c; > + int d; > + int *(c, d); > + glob_t *e; > + return glob(a, b, NULL, e); > + > +} > \ No newline at end of file > diff --git a/testsuites/psxtests/psxhdrs/glob/globfree.c > b/testsuites/psxtests/psxhdrs/glob/globfree.c > new file mode 100644 > index 0000000000..0ba1f23d82 > --- /dev/null > +++ b/testsuites/psxtests/psxhdrs/glob/globfree.c > @@ -0,0 +1,34 @@ > +/** > + * @file > + * @brief globfree() API Conformance Test > + */ > + > +/* > + * COPYRIGHT (c) 2018. > + * Abhimanyu Raghuvanshi > + * > + * 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 <fenv.h> > + > +int test(void); > + > +int test(void) > +{ > + glob_t *a; > + return globfree(a); > +} > \ No newline at end of file > -- > 2.19.1.windows.1 > > 送られた ABR2908 > > _______________________________________________ > devel mailing list > devel@rtems.org > http://lists.rtems.org/mailman/listinfo/devel
_______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel