1. 26 Jul, 2016 1 commit
  2. 16 Jan, 2016 2 commits
  3. 12 Jun, 2015 1 commit
  4. 15 Apr, 2015 1 commit
  5. 19 Mar, 2015 1 commit
    • Bryce Harrington's avatar
      Spelling fixes (cosmetic) · 439b0a38
      Bryce Harrington authored
      A few typos in comments and protocol docs, no code changes.
      ./src/wayland-util.h:281: recieved  ==> received
      ./src/wayland-client.c:115: occured  ==> occurred
      ./src/wayland-client.c:156: occured  ==> occurred
      ./tests/test-compositor.c:76: parallely  ==> parallelly
      ./tests/test-compositor.c:474: recieve  ==> receive
      ./protocol/wayland.xml:1767: layed  ==> laid
      ./protocol/wayland.xml:2112: dependant  ==> dependent
      ./doc/publican/sources/Client.xml:25: recieved  ==> received
      Signed-off-by: default avatarBryce Harrington <bryce@osg.samsung.com>
      Reviewed-by: Bill Spitzak's avatarBill Spitzak <spitzak@gmail.com>
  6. 28 Jan, 2015 1 commit
    • Marek Chalupa's avatar
      test-compositor: extend leak checks into clients · 9ef02775
      Marek Chalupa authored
      Run leak checks also on clients of test-compositor.
      Checking leaks in memory is the same as in normal TEST.
      Checking file descriptor leaks is slightly more complex, as we pass an
      open file descriptor in the WAYLAND_SOCKET environment variable, which
      will be consumed by a client calling wl_display_connect(), but otherwise
      remain unused. We manage this accounting by checking if the environment
      variable has been unset by wl_display_connect() as it consumes the
      Signed-off-by: default avatarMarek Chalupa <mchqwerty@gmail.com>
      Reviewed-by: Daniel Stone's avatarDaniel Stone <daniels@collabora.com>
      [daniels: squashed counter-proposal patch to simplify fd leak checking,
                plus Bill's counter-counter-proposal, and reworded log.]
  7. 01 Dec, 2014 1 commit
  8. 22 Aug, 2014 1 commit
    • Marek Chalupa's avatar
      tests: add test-compositor · 85d08e8b
      Marek Chalupa authored
      This patch introduces a set of functions that can create a display
      and clients for tests.
      On server side the user can use functions:
      and on client side the user can use:
      The stop_display() and display_resume() are functions that serve as a barrier
      and also allow the display to take some action after the display_run() was called,
      because after the display is stopped, it can run arbitrary code until it calls
      client_connect() function connects to wayland display and creates a proxy to
      test_compositor global object, so it can ask for stopping the display later
      using stop_display().
      An example:
              /* or client can use wl_display_connect(NULL)
               * and do all the stuff manually */
              struct client *c = client_connect();
              /* do some stuff, ... */
              /* stop the display so that it can
               * do some other stuff */
              stop_display(c, 1);
              /* ... */
             struct display *d = display_create();
             /* set up the display */
             wl_global_create(d->wl_display, ...);
             /* ... */
             create_client(d, client_main);
             /* if we are here, the display has been stopped
              * and we can do some code, i. e. create another global or so */
             wl_global_create(d->wl_display, ...);
             /* ... */
             display_resume(d); /* resume display and clients */
        added/changed message in few asserts that were not clear
        fixed codying style issues and typo
        client_create_with_name: fixed a condition in an assert
        get_socket_name: use also pid
        check_error: fix errno -> err
      [Pekka Paalanen: added test-compositor.h to SOURCES, added
      WL_HIDE_DEPRECATED to get rid of deprecated defs and lots of warnings,
      fixed one unchecked return value from write().]
      Signed-off-by: default avatarMarek Chalupa <mchqwerty@gmail.com>
      Signed-off-by: Pekka Paalanen's avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>