[prev in list] [next in list] [prev in thread] [next in thread]
List: ltp-list
Subject: [LTP] [PATCH] the very last patch for timer_create
From: Cyril Hrubis <chrubis () suse ! cz>
Date: 2011-01-31 18:58:30
Message-ID: 20110131185830.GA5618 () saboteur ! suse ! cz
[Download RAW message or body]
Hi!
For some reason timer_create/11-1.c is missing call for reading time
into ts_start, which is the reason for the tescase to fail. Patch is
attached.
Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
--
Cyril Hrubis
chrubis@suse.cz
["timer_create_missing.patch" (text/x-patch)]
diff --git a/testcases/open_posix_testsuite/conformance/interfaces/timer_create/11-1.c \
b/testcases/open_posix_testsuite/conformance/interfaces/timer_create/11-1.c index \
447c7ed..321b7bc 100644
--- a/testcases/open_posix_testsuite/conformance/interfaces/timer_create/11-1.c
+++ b/testcases/open_posix_testsuite/conformance/interfaces/timer_create/11-1.c
@@ -73,6 +73,11 @@ int main(int argc, char *argv[])
return PTS_UNRESOLVED;
}
+ if (clock_gettime(CLOCK_THREAD_CPUTIME_ID, &ts_start) != 0) {
+ perror("clock_gettime() failed");
+ return PTS_UNRESOLVED;
+ }
+
if (timer_settime(tid, 0, &its, NULL) != 0) {
perror("timer_settime did not return success");
return PTS_UNRESOLVED;
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic