Module: xenomai-2.5 Branch: master Commit: a9743100cb2f692fb7588c4b1277bcdbfc0f3769 URL: http://git.xenomai.org/?p=xenomai-2.5.git;a=commit;h=a9743100cb2f692fb7588c4b1277bcdbfc0f3769
Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org> Date: Mon Mar 8 23:14:01 2010 +0100 testsuite: suppress the cancel_with_signals testcase from sigtest. It is longer works now that the current mode thread cleanup handler emits a system call. --- src/testsuite/sigtest/sigtest.c | 28 +--------------------------- 1 files changed, 1 insertions(+), 27 deletions(-) diff --git a/src/testsuite/sigtest/sigtest.c b/src/testsuite/sigtest/sigtest.c index 09043ad..3127074 100644 --- a/src/testsuite/sigtest/sigtest.c +++ b/src/testsuite/sigtest/sigtest.c @@ -111,23 +111,6 @@ static unsigned failed, success; } \ }) -void *cancel_with_signals(void *cookie) -{ - int *run = (int *)cookie; - int one_restart[] = { -ERESTART, }; - struct timespec ts; - - pthread_set_name_np(pthread_self(), "cancel_with_signals"); - - check(sigtest_queue(one_restart, ARRAY_SIZE(one_restart)), 0); - ts.tv_sec = 0; - ts.tv_nsec = 20000000; - __real_nanosleep(&ts, NULL); /* Wait for the signals to be - * delivered. */ - *run = 1; - pthread_exit(NULL); -} - struct cond { pthread_mutex_t mx; pthread_cond_t cnd; @@ -265,20 +248,11 @@ int main(void) check(sigtest_wait_sec(), 0); test_assert(cascade_res == ~0); - /* Try and destroy a thread with pending signals. They should - be discarded. */ - pthread_t tid; - int run = 0; - mysh = mark_seen; - seen = 0; - pthread_create(&tid, NULL, cancel_with_signals, &run); - pthread_join(tid, NULL); - test_assert(run == 1 && seen == 0); - /* Try and mix linux signals and xeno signals (this test does not work as expected, but turns out to be a good test for pthread_cond_wait and signals, so, keep it). */ struct timespec ts; + pthread_t tid; struct cond c; mysh = mark_seen; seen = 0; _______________________________________________ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git