From 901e36fd289e5815dcab62e7bbb54f9f05d9afdc Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Mon, 11 Mar 2013 15:45:05 -0700 Subject: [PATCH] cli: Add test for "apitrace trim" with both --calls and --frames This case was triggering a bug in "apitrace trim" where it would incorrectly bail out after going past the last specified call (or frame) without noticing that there were still further frames (or calls) to be processed. --- traces/trim-frames-and-calls.script | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 traces/trim-frames-and-calls.script diff --git a/traces/trim-frames-and-calls.script b/traces/trim-frames-and-calls.script new file mode 100644 index 0000000..c9a0084 --- /dev/null +++ b/traces/trim-frames-and-calls.script @@ -0,0 +1,5 @@ +trim -o trim-frames-and-calls-trim.trace --frames=5/frame --calls=2 glxsimple.trace +dump --verbose trim-frames-and-calls-trim.trace +0 glXMakeCurrent(dpy = 0x236a280, drawable = 41943041, ctx = 0x2384330) = True +1 glXSwapBuffers(dpy = 0x236a280, drawable = 41943041) + -- 2.43.0