According to the commit http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commitdiff;h=26f9a4796af330173d790c8d2b5e2efcc489e755
It removed the *clock_set* field of the *process* and *thread* timers. So, the *CLOCK_PROCESS_CPUTIME_ID* and *CLOCK_THREAD_CPUTIME_ID* will no longer be supported to *clock_settime*, and return INTVAL now. The patch was mergered when *v2.6.38-rc3*, so, compare the version with linux-2.6.38 will make sense. Signed-off-by: Wanlong Gao <[email protected]> --- .../kernel/timers/clock_settime/clock_settime03.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/testcases/kernel/timers/clock_settime/clock_settime03.c b/testcases/kernel/timers/clock_settime/clock_settime03.c index 196237b..2eb53be 100644 --- a/testcases/kernel/timers/clock_settime/clock_settime03.c +++ b/testcases/kernel/timers/clock_settime/clock_settime03.c @@ -126,7 +126,7 @@ main(int ac, char **av) /* PROCESS_CPUTIME_ID & THREAD_CPUTIME_ID are not supported on * kernel versions lower than 2.6.12 */ - if ((tst_kvercmp(2, 6, 12)) < 0) { + if ((tst_kvercmp(2, 6, 12)) < 0 || (tst_kvercmp(2, 6, 38)) > 0) { testcase[7] = EINVAL; testcase[8] = EINVAL; } else { @@ -268,4 +268,4 @@ cleanup(void) * print errno log if that option was specified. */ TEST_CLEANUP; -} \ No newline at end of file +} -- 1.7.7.1 ------------------------------------------------------------------------------ The demand for IT networking professionals continues to grow, and the demand for specialized networking skills is growing even more rapidly. Take a complimentary Learning@Cisco Self-Assessment and learn about Cisco certifications, training, and career opportunities. http://p.sf.net/sfu/cisco-dev2dev _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
