aboutsummaryrefslogtreecommitdiff
path: root/helper
diff options
context:
space:
mode:
authorMike Holmes <mike.holmes@linaro.org>2015-07-14 15:28:14 -0400
committerMaxim Uvarov <maxim.uvarov@linaro.org>2015-07-16 18:10:36 +0300
commit77b5d7563ddf0631838295d7503ce61e2be7de42 (patch)
treefc1aa210accd9700d281359ddb1a95ba1903087b /helper
parent63754dbfa2e6263cfc3f5005a7bfec8dfca20dbf (diff)
helper: test: add test for odph_pause
Signed-off-by: Mike Holmes <mike.holmes@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'helper')
-rw-r--r--helper/test/.gitignore1
-rw-r--r--helper/test/Makefile.am4
-rw-r--r--helper/test/odph_pause.c14
3 files changed, 18 insertions, 1 deletions
diff --git a/helper/test/.gitignore b/helper/test/.gitignore
index 3542630..213bc5e 100644
--- a/helper/test/.gitignore
+++ b/helper/test/.gitignore
@@ -3,3 +3,4 @@
odp_chksum
odp_process
odp_thread
+odph_pause
diff --git a/helper/test/Makefile.am b/helper/test/Makefile.am
index 7b73602..fbf5a9b 100644
--- a/helper/test/Makefile.am
+++ b/helper/test/Makefile.am
@@ -7,7 +7,8 @@ TESTS_ENVIRONMENT += TEST_DIR=${builddir}
EXECUTABLES = odp_chksum$(EXEEXT) \
odp_thread$(EXEEXT) \
- odp_process$(EXEEXT)
+ odp_process$(EXEEXT)\
+ odph_pause$(EXEEXT)
COMPILE_ONLY =
@@ -27,3 +28,4 @@ dist_odp_thread_SOURCES = odp_thread.c
odp_thread_LDADD = $(LIB)/libodphelper.la $(LIB)/libodp.la
dist_odp_process_SOURCES = odp_process.c
odp_process_LDADD = $(LIB)/libodphelper.la $(LIB)/libodp.la
+odph_pause_SOURCES = odph_pause.c
diff --git a/helper/test/odph_pause.c b/helper/test/odph_pause.c
new file mode 100644
index 0000000..f5f5da3
--- /dev/null
+++ b/helper/test/odph_pause.c
@@ -0,0 +1,14 @@
+/* Copyright (c) 2015, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include <test_debug.h>
+#include "../odph_pause.h"
+
+int main(int argc TEST_UNUSED, char *argv[] TEST_UNUSED)
+{
+ odph_pause();
+ return 0;
+}