1 # Verify that "trim --trim-spec=no-side-effects" can be used in
2 # concert with --prune. This is effectively the union of the behavior
3 # in the other tests: cli-trim-no-side-effects-prune and
4 # cli-trim-no-side-effects-trim.
6 # Trim trace to frame 1. Use --trim-spec=no-side-effects to drop calls
7 # in frame 0 with no side effects, and use --prunt to drop calls in
8 # frame 1 with no side effects.
10 apitrace trim --prune --deps --trim-spec=no-side-effects --frames=1 few-side-effects.trace
12 # Verify that we actually trimmed what we wanted to (just calls with
15 apitrace diff --diff=python few-side-effects.trace few-side-effects-trim.trace
16 expect r""" glXChooseVisual(31941248, 0, (GLX_RGBA, GLX_RED_SIZE, GLX_RED_SIZE, GLX_GREEN_SIZE, GLX_RED_SIZE, GLX_BLUE_SIZE, GLX_RED_SIZE, GLX_ALPHA_SIZE, GLX_RED_SIZE, GLX_DOUBLEBUFFER, GLX_DEPTH_SIZE, 24, GLX_STENCIL_SIZE, GLX_RED_SIZE, GLX_X_VISUAL_TYPE, GLX_DIRECT_COLOR, 0)) = ([31985400, 34, 0, 24, 5, 16711680, 65280, 255, 256, 8])
17 glXCreateContext(31941248, ([31985400, 34, 0, 24, 5, 16711680, 65280, 255, 256, 8]), 0, True) = 32022336
18 glXMakeCurrent(31941248, 60817409, 32022336) = True
19 - glXQueryVersion(31941248, (1), (4)) = True
20 glViewport(0, 0, 64, 64)
21 glMatrixMode(GL_PROJECTION)
23 glOrtho(0.0, 64.0, 64.0, 0.0, 0.0, 1.0)
24 glMatrixMode(GL_MODELVIEW)
25 - glGetIntegerv(GL_LINE_WIDTH, (1))
26 - glGetIntegerv(GL_LOGIC_OP_MODE, (5379))
27 - glIsEnabled(GL_BLEND) = GL_FALSE
29 - glIsEnabled(GL_BLEND) = GL_TRUE
31 glXSwapBuffers(31941248, 60817409)
32 - glGetIntegerv(GL_LINE_WIDTH, (1))
33 - glGetIntegerv(GL_LOGIC_OP_MODE, (5379))
34 - glIsEnabled(GL_BLEND) = GL_FALSE
36 - glIsEnabled(GL_BLEND) = GL_TRUE
38 glXDestroyContext(31941248, 32022336)