]> git.cworth.org Git - apitrace-tests/commitdiff
cli: Add test for "apitrace trim" with both --calls and --frames
authorCarl Worth <cworth@cworth.org>
Mon, 11 Mar 2013 22:45:05 +0000 (15:45 -0700)
committerCarl Worth <cworth@cworth.org>
Fri, 12 Apr 2013 21:27:06 +0000 (14:27 -0700)
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 [new file with mode: 0644]

diff --git a/traces/trim-frames-and-calls.script b/traces/trim-frames-and-calls.script
new file mode 100644 (file)
index 0000000..c9a0084
--- /dev/null
@@ -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)
+