From: Kang Kai <kai.kang@windriver.com>
To: ltp-list@lists.sourceforge.net
Subject: [LTP] [PATCH 1/2] pthread_mutex_lock/3-1: make sure install signal hanldler first
Date: Fri, 9 Dec 2011 16:28:45 +0800 [thread overview]
Message-ID: <1323419326-13172-2-git-send-email-kai.kang@windriver.com> (raw)
In-Reply-To: <1323419326-13172-1-git-send-email-kai.kang@windriver.com>
Test case failed for linux in some platform. Make parent thread
sleep for a while to make sure that signal handlers are installed
before send signal USR1 and USR2.
Signed-off-by: Kang Kai <kai.kang@windriver.com>
---
.../interfaces/pthread_mutex_lock/3-1.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_lock/3-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_lock/3-1.c
index 771851d..a648c96 100644
--- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_lock/3-1.c
+++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_lock/3-1.c
@@ -307,6 +307,8 @@ int main (int argc, char * argv[])
if ((ret = pthread_create(&th_work, NULL, threaded, NULL)))
{ UNRESOLVED(ret, "Worker thread creation failed"); }
+ sleep(1);
+
arg1.thr = &th_work;
arg2.thr = &th_work;
arg1.sig = SIGUSR1;
@@ -359,4 +361,4 @@ int main (int argc, char * argv[])
#endif
#endif
PASSED;
-}
\ No newline at end of file
+}
--
1.7.5.4
------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of
discussion for anyone considering optimizing the pricing and packaging model
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
next prev parent reply other threads:[~2011-12-09 8:29 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-09 8:28 [LTP] Patches for POSIX test cases Kang Kai
2011-12-09 8:28 ` Kang Kai [this message]
2011-12-13 6:04 ` [LTP] [PATCH 1/2] pthread_mutex_lock/3-1: make sure install signal hanldler first Garrett Cooper
2011-12-09 8:28 ` [LTP] [PATCH 2/2] pthread_rwlock_unlock/4-2: remove local var 'rc' Kang Kai
2011-12-09 9:18 ` Wanlong Gao
2011-12-13 5:56 ` Garrett Cooper
2011-12-13 6:08 ` Wanlong Gao
2011-12-09 8:52 ` [LTP] Patches for POSIX test cases Wanlong Gao
2011-12-09 9:19 ` Kang Kai
2011-12-13 5:52 ` Garrett Cooper
2011-12-09 13:04 ` Cyril Hrubis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1323419326-13172-2-git-send-email-kai.kang@windriver.com \
--to=kai.kang@windriver.com \
--cc=ltp-list@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox