diff options
author | Anas Nashif <anas.nashif@intel.com> | 2017-02-10 22:52:57 -0800 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2017-02-10 23:03:58 -0800 |
commit | f16f6ec2df95c2a783d8b282c5313943ca629eb1 (patch) | |
tree | b7f1bf238134e6462b39630c879d577b43c2301d | |
parent | bab5534ff661807b5b6251e0dbea712c41265648 (diff) |
tests: pipe: remove unsupported testsxtensa
Remove tests that assert due to invocation from ISR which is not supported.
Change-Id: Idd2360847a467af6afdd9fbed8f87a620d9ed2f7
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
-rw-r--r-- | tests/kernel/pipe/test_pipe_api/src/main.c | 2 | ||||
-rw-r--r-- | tests/kernel/pipe/test_pipe_api/src/test_pipe_contexts.c | 32 |
2 files changed, 0 insertions, 34 deletions
diff --git a/tests/kernel/pipe/test_pipe_api/src/main.c b/tests/kernel/pipe/test_pipe_api/src/main.c index bf09791fc..cd5016a02 100644 --- a/tests/kernel/pipe/test_pipe_api/src/main.c +++ b/tests/kernel/pipe/test_pipe_api/src/main.c @@ -13,7 +13,6 @@ #include <ztest.h> extern void test_pipe_thread2thread(void); -extern void test_pipe_thread2isr(void); extern void test_pipe_put_fail(void); extern void test_pipe_get_fail(void); @@ -22,7 +21,6 @@ void test_main(void *p1, void *p2, void *p3) { ztest_test_suite(test_pipe_api, ztest_unit_test(test_pipe_thread2thread), - ztest_unit_test(test_pipe_thread2isr), ztest_unit_test(test_pipe_put_fail), ztest_unit_test(test_pipe_get_fail)); ztest_run_test_suite(test_pipe_api); diff --git a/tests/kernel/pipe/test_pipe_api/src/test_pipe_contexts.c b/tests/kernel/pipe/test_pipe_api/src/test_pipe_contexts.c index b9313b231..de1ca4cbf 100644 --- a/tests/kernel/pipe/test_pipe_api/src/test_pipe_contexts.c +++ b/tests/kernel/pipe/test_pipe_api/src/test_pipe_contexts.c @@ -65,17 +65,6 @@ static void tpipe_get(struct k_pipe *ppipe) } } -/*entry of contexts*/ -static void tIsr_entry_put(void *p) -{ - tpipe_put((struct k_pipe *)p); -} - -static void tIsr_entry_get(void *p) -{ - tpipe_get((struct k_pipe *)p); -} - static void tThread_entry(void *p1, void *p2, void *p3) { tpipe_get((struct k_pipe *)p1); @@ -103,18 +92,6 @@ static void tpipe_thread_thread(struct k_pipe *ppipe) k_thread_abort(tid); } -static void tpipe_thread_isr(struct k_pipe *ppipe) -{ - k_sem_init(&end_sema, 0, 1); - - /**TESTPOINT: thread-isr data passing via pipe*/ - irq_offload(tIsr_entry_put, ppipe); - tpipe_get(ppipe); - - tpipe_put(ppipe); - irq_offload(tIsr_entry_get, ppipe); -} - /*test cases*/ void test_pipe_thread2thread(void) { @@ -126,12 +103,3 @@ void test_pipe_thread2thread(void) tpipe_thread_thread(&kpipe); } -void test_pipe_thread2isr(void) -{ - /**TESTPOINT: test k_pipe_init pipe*/ - k_pipe_init(&pipe, data, PIPE_LEN); - tpipe_thread_isr(&pipe); - - /**TESTPOINT: test K_PIPE_DEFINE pipe*/ - tpipe_thread_isr(&kpipe); -} |