summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxhdrs/ctype/toupper_l.c
diff options
context:
space:
mode:
authorzehata <zenon.hans.taneka@dhs.sg>2018-12-07 00:49:32 +0800
committerJoel Sherrill <joel@rtems.org>2018-12-06 11:42:51 -0600
commita803bd9e737d6be3059a34b52250d6e09983865d (patch)
tree5f790a7ca4fba800cdf9017f8cbccdc379130970 /testsuites/psxtests/psxhdrs/ctype/toupper_l.c
parentpsxtmtests_plan.csv: Add preemption cases for pthread_setschedprio (diff)
downloadrtems-a803bd9e737d6be3059a34b52250d6e09983865d.tar.bz2
Added POSIX Compliance Test for <ctype.h> (GCI 2018)
Diffstat (limited to '')
-rw-r--r--testsuites/psxtests/psxhdrs/ctype/toupper_l.c38
1 files changed, 38 insertions, 0 deletions
diff --git a/testsuites/psxtests/psxhdrs/ctype/toupper_l.c b/testsuites/psxtests/psxhdrs/ctype/toupper_l.c
new file mode 100644
index 0000000000..a290a4c9e0
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/ctype/toupper_l.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief toupper_l() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * 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 <ctype.h>
+
+int test(void);
+
+int test(void)
+{
+ int lower;
+ locale_t locale;
+
+ locale = (locale_t)0;
+ lower = 0;
+ return (toupper_l(lower, locale));
+}