From: Carl Worth Date: Mon, 11 Mar 2013 22:45:05 +0000 (-0700) Subject: cli: Add test for "apitrace trim" with both --calls and --frames X-Git-Url: https://git.cworth.org/git?p=apitrace-tests;a=commitdiff_plain;h=901e36fd289e5815dcab62e7bbb54f9f05d9afdc;ds=sidebyside 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. --- 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) +