mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-09-06 18:05:39 +00:00
tests: reduce subsurface-test verbosity
Not printing these will drop 7980 lines or roughly 350 kB from the test logs. Now I don't have scroll through them all, and I don't have to watch them if I run this test manually. These prints were useful when developing the test, but we don't need them printed in CI all the time. Printing the final count should be enough. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
This commit is contained in:
parent
ecbf1dba43
commit
c021e2f9eb
|
@ -31,6 +31,8 @@
|
|||
#include "weston-test-client-helper.h"
|
||||
#include "weston-test-fixture-compositor.h"
|
||||
|
||||
#define VERBOSE 0
|
||||
|
||||
static enum test_result_code
|
||||
fixture_setup(struct weston_test_harness *harness)
|
||||
{
|
||||
|
@ -841,10 +843,12 @@ destroy_permu_object(struct wl_surface **surfs,
|
|||
int h = (i + 1) / 2;
|
||||
|
||||
if (i & 1) {
|
||||
if (VERBOSE)
|
||||
testlog(" [sub %2d]", h);
|
||||
wl_subsurface_destroy(subs[h]);
|
||||
subs[h] = NULL;
|
||||
} else {
|
||||
if (VERBOSE)
|
||||
testlog(" [surf %2d]", h);
|
||||
wl_surface_destroy(surfs[h]);
|
||||
surfs[h] = NULL;
|
||||
|
@ -883,14 +887,17 @@ TEST(test_subsurface_destroy_permutations)
|
|||
|
||||
create_subsurface_tree(client, surfs, subs, test_size);
|
||||
|
||||
if (VERBOSE)
|
||||
testlog("permu");
|
||||
|
||||
if (VERBOSE)
|
||||
for (i = 0; i < NSTEPS; i++)
|
||||
testlog(" %2d", per.cnt[i]);
|
||||
|
||||
for (i = 0; i < NSTEPS; i++)
|
||||
destroy_permu_object(surfs, subs, per.cnt[i]);
|
||||
|
||||
if (VERBOSE)
|
||||
testlog("\n");
|
||||
client_roundtrip(client);
|
||||
|
||||
|
|
Loading…
Reference in a new issue