summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxhdrs/glob/globfree.c
diff options
context:
space:
mode:
authorABR290B <abhimanyuraghuvanshi29@gmail.com>2018-12-06 09:38:31 +0530
committerJoel Sherrill <joel@rtems.org>2018-12-05 22:47:20 -0600
commitbf135a97a11d7ec36e9fcfd646972c7d2d2b8a6c (patch)
treefb843f320c3903203f356d62de1a59eaecc2c14c /testsuites/psxtests/psxhdrs/glob/globfree.c
parentAdded POSIX Compliance Test for complex.h, and adding lines to define CYGWIN ... (diff)
downloadrtems-bf135a97a11d7ec36e9fcfd646972c7d2d2b8a6c.tar.bz2
POSIX Compliance Signature Test for glob.h (GCI 2018)
Diffstat (limited to '')
-rw-r--r--testsuites/psxtests/psxhdrs/glob/globfree.c37
1 files changed, 37 insertions, 0 deletions
diff --git a/testsuites/psxtests/psxhdrs/glob/globfree.c b/testsuites/psxtests/psxhdrs/glob/globfree.c
new file mode 100644
index 0000000000..7da3520ae0
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/glob/globfree.c
@@ -0,0 +1,37 @@
+/**
+ * @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 <glob.h>
+
+int test(void);
+
+int test(void)
+{
+ glob_t a;
+
+ globfree(&a);
+
+ return 0;
+}