[PATCH v2 3/9] tests: Split long lines in sched_xetattr test

Eugene Syromyatnikov evgsyr at gmail.com
Thu Sep 8 14:06:11 UTC 2016


---
 tests/sched_xetattr.c |   10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/tests/sched_xetattr.c b/tests/sched_xetattr.c
index b437b04..b982cca 100644
--- a/tests/sched_xetattr.c
+++ b/tests/sched_xetattr.c
@@ -54,7 +54,10 @@ main(void)
 	if (syscall(__NR_sched_getattr, 0, &sched, sizeof(sched), 0))
 		perror_msg_and_skip("sched_getattr");
 
-	printf("sched_getattr\\(0, \\{size=%u, sched_policy=SCHED_[A-Z]+, sched_flags=%s, sched_nice=%u, sched_priority=%u, sched_runtime=%" PRIu64 ", sched_deadline=%" PRIu64 ", sched_period=%" PRIu64 "\\}, 256, 0\\) += 0\n",
+	printf("sched_getattr\\(0, \\{size=%u, sched_policy=SCHED_[A-Z]+, "
+		"sched_flags=%s, sched_nice=%u, sched_priority=%u, "
+		"sched_runtime=%" PRIu64 ", sched_deadline=%" PRIu64 ", "
+		"sched_period=%" PRIu64 "\\}, 256, 0\\) += 0\n",
 		sched.attr.size,
 		sched.attr.sched_flags ? "SCHED_FLAG_RESET_ON_FORK" : "0",
 		sched.attr.sched_nice,
@@ -67,7 +70,10 @@ main(void)
 	if (syscall(__NR_sched_setattr, 0, &sched, 0))
 		perror_msg_and_skip("sched_setattr");
 
-	printf("sched_setattr\\(0, \\{size=%u, sched_policy=SCHED_[A-Z]+, sched_flags=%s, sched_nice=%u, sched_priority=%u, sched_runtime=%" PRIu64 ", sched_deadline=%" PRIu64 ", sched_period=%" PRIu64 "\\}, 0\\) += 0\n",
+	printf("sched_setattr\\(0, \\{size=%u, sched_policy=SCHED_[A-Z]+, "
+		"sched_flags=%s, sched_nice=%u, sched_priority=%u, "
+		"sched_runtime=%" PRIu64 ", sched_deadline=%" PRIu64 ", "
+		"sched_period=%" PRIu64 "\\}, 0\\) += 0\n",
 		sched.attr.size,
 		"SCHED_FLAG_RESET_ON_FORK",
 		sched.attr.sched_nice,
-- 
1.7.10.4





More information about the Strace-devel mailing list