1. 22 Aug, 2014 3 commits
    • Marek Chalupa's avatar
      tests: test posting errors · 47208d2a
      Marek Chalupa authored
      Test posting errors to one and more clients.
      Reviewed-by: Pekka Paalanen's avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
    • Marek Chalupa's avatar
      tests: use test compositor in queue-test · 93e65406
      Marek Chalupa authored
      Most of the code of the queue-test is covered by the test compositor,
      so we can save few lines and use the test compositor instead.
      I think it's also more readable.
      This patch removes timeout from the test. We plan to add timeout
      to all tests later, though.
        rebased to master
      Signed-off-by: default avatarMarek Chalupa <mchqwerty@gmail.com>
      Reviewed-by: Pekka Paalanen's avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
    • 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>
  2. 21 Aug, 2014 7 commits
  3. 19 Aug, 2014 2 commits
  4. 18 Aug, 2014 5 commits
  5. 07 Aug, 2014 4 commits
  6. 05 Aug, 2014 7 commits
  7. 25 Jul, 2014 3 commits
  8. 07 Jul, 2014 1 commit
    • Marek Chalupa's avatar
      client: extend error handling · 886b09c9
      Marek Chalupa authored
      When an error occurs, wl_display_get_error() does not
      provide any way of getting know if it was a local error or if it was
      an error event, respectively what object caused the error and what
      the error was.
      This patch introduces a new function wl_display_get_protocol_error()
      which will return error code, interface and id of the object that
      generated the error.
      wl_display_get_error() will work the same way as before.
      wl_display_get_protocol_error() DOES NOT indicate that a non-protocol
      error happened. It returns valid information only in that case that
      (protocol) error occurred, so it should be used after calling
      wl_display_get_error() with positive result.
      [Pekka Paalanen] Applied another hunk of Bryce's comments to docs,
      	added libtool version bump.
      Reviewed-by: Pekka Paalanen's avatarPekka Paalanen <ppaalanen@gmail.com>
      Reviewed-by: default avatarBryce Harrington <b.harrington@samsung.com>
  9. 06 Jul, 2014 3 commits
  10. 19 Jun, 2014 1 commit
  11. 18 Jun, 2014 1 commit
  12. 03 Jun, 2014 1 commit
  13. 28 May, 2014 1 commit
  14. 19 May, 2014 1 commit