tests: pipe: remove unsupported tests

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>
This commit is contained in:
Anas Nashif 2017-02-10 22:52:57 -08:00
commit f16f6ec2df
2 changed files with 0 additions and 34 deletions

View file

@ -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);

View file

@ -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);
}