"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "stress-clock.c" between
stress-ng-0.12.09.tar.xz and stress-ng-0.12.10.tar.xz

About: stress-ng will stress test a computer system in various selectable ways. It was designed to exercise various physical subsystems of a computer as well as the various operating system kernel interfaces.

stress-clock.c  (stress-ng-0.12.09.tar.xz):stress-clock.c  (stress-ng-0.12.10.tar.xz)
skipping to change at line 259 skipping to change at line 259
if ((ret < 0) && (g_opt_flags & OPT_FLAGS_VERIFY) && if ((ret < 0) && (g_opt_flags & OPT_FLAGS_VERIFY) &&
(errno != EINVAL) && (errno != ENOSYS)) { (errno != EINVAL) && (errno != ENOSYS)) {
pr_fail("%s: clock_getres failed for time r '%s', errno=%d (%s)\n", pr_fail("%s: clock_getres failed for time r '%s', errno=%d (%s)\n",
args->name, clocks[i].name, errno, strerr or(errno)); args->name, clocks[i].name, errno, strerr or(errno));
} }
if (ret < 0) if (ret < 0)
continue; continue;
/* Ensuring clock_settime cannot succeed without privilege */ /* Ensuring clock_settime cannot succeed without privilege */
if (!is_root) { if (!is_root) {
ret = shim_clock_settime(clocks[i].id, &t ); ret = shim_clock_settime(clocks[i].id, &t 1);
if (ret != -EPERM) { if (ret != -EPERM) {
/* This is an error, report it! * / /* This is an error, report it! * /
pr_fail("%s: clock_settime failed , did not have privilege to " pr_fail("%s: clock_settime failed , did not have privilege to "
"set time, expected -EPER M, instead got errno=%d (%s)\n", "set time, expected -EPER M, instead got errno=%d (%s)\n",
args->name, errno, strerr or(errno)); args->name, errno, strerr or(errno));
} }
} }
/* /*
* Exercise clock_settime with illegal tv sec * Exercise clock_settime with illegal tv sec
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)