summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/spcpuset01/system.h
diff options
context:
space:
mode:
authorJennifer Averett <jennifer.averett@oarcorp.com>2013-12-16 13:13:14 -0600
committerJennifer Averett <jennifer.averett@oarcorp.com>2013-12-19 14:11:09 -0600
commitfe011a59a4b6fe2879f2c2354e8771c3f8aad6aa (patch)
treedb34e117b4d9add862dc35f3ec0707c8c15be909 /testsuites/sptests/spcpuset01/system.h
parentcpukit/capture: Update the capture engine. (diff)
downloadrtems-fe011a59a4b6fe2879f2c2354e8771c3f8aad6aa.tar.bz2
sptests/spcpuset*: Add tests for fixed size cpu_set_t operations.
This adds five tests for <sys/cpuset.h>. It does not include tests for CPU_XXX_S methods. The autotools should be able to avoid enabling the tests unless the toolset has <sys/cpuset.h>.
Diffstat (limited to 'testsuites/sptests/spcpuset01/system.h')
-rw-r--r--testsuites/sptests/spcpuset01/system.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/testsuites/sptests/spcpuset01/system.h b/testsuites/sptests/spcpuset01/system.h
new file mode 100644
index 0000000000..cc3359fb15
--- /dev/null
+++ b/testsuites/sptests/spcpuset01/system.h
@@ -0,0 +1,49 @@
+/*
+ * COPYRIGHT (c) 1989-2013.
+ * 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.rtems.com/license/LICENSE.
+ */
+
+#include "tmacros.h"
+#include "test_support.h"
+#include <sys/cpuset.h>
+
+/* functions */
+
+rtems_task Init(
+ rtems_task_argument argument
+);
+
+/* global variables */
+extern cpu_set_t set1;
+extern cpu_set_t set2;
+extern cpu_set_t set3;
+
+void cpuset_logic_test(void);
+
+/* configuration information */
+
+#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
+#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
+
+#define CONFIGURE_MAXIMUM_TASKS 1
+#define CONFIGURE_MAXIMUM_SEMAPHORES 1
+
+#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
+
+#include <rtems/confdefs.h>
+
+
+/*
+ * Keep the names and IDs in global variables so another task can use them.
+ */
+
+
+/*
+ * Handy macros and static inline functions
+ */
+
+/* end of include file */