1. 30 Jan, 2020 1 commit
  2. 24 Oct, 2019 1 commit
  3. 16 Jun, 2015 1 commit
  4. 15 Jun, 2015 1 commit
  5. 02 Apr, 2015 1 commit
  6. 28 Nov, 2014 1 commit
  7. 22 Jul, 2014 1 commit
  8. 17 Apr, 2014 1 commit
    • Marek Chalupa's avatar
      tests: fix bad-buffer-test · 06f2fa1a
      Marek Chalupa authored
      bad-buffer-test is FAIL_TEST and every assert() (or even SIGSEGV signal)
      make it pass. It shouldn't be so for example when assert() is invoked
      when a client couldn't connect to display.
      
      Make sure that only relevant asserts make the test pass
      and the other make it fail (by returning 0)
      06f2fa1a
  9. 07 Apr, 2014 1 commit
    • Andrew Wedgbury's avatar
      Make sure config.h is included before any system headers · 9cd661e7
      Andrew Wedgbury authored
      
      
      There was an issue recently in screen-share.c where config.h was not
      being included, resulting in the wrong definition for off_t being used on
      32 bit systems. I checked and I don't think this problem is happening
      elsewhere, but to help avoid this sort of problem in the future, I went
      through and made sure that config.h is included first whenever system
      headers are included.
      
      The config.h header should be included before any system headers, failing
      to do this can result in the wrong type sizes being defined on certain
      systems, e.g. off_t from sys/types.h
      Signed-off-by: default avatarAndrew Wedgbury <andrew.wedgbury@realvnc.com>
      9cd661e7
  10. 22 Nov, 2013 1 commit
  11. 12 Dec, 2012 3 commits
    • Pekka Paalanen's avatar
      tests: check wl_display_roundtrip() for errors · f2aa64f1
      Pekka Paalanen authored
      
      
      Add a macro that wraps wl_display_roundtrip() and check for errors. It
      is a macro, so that the assert would show the relevant file and line
      number.
      
      This will also catch protocol errors, that would go unnoticed otherwise.
      
      All roundtrips in tests are replaced with the check.
      Signed-off-by: Pekka Paalanen's avatarPekka Paalanen <ppaalanen@gmail.com>
      f2aa64f1
    • Kristian Høgsberg's avatar
      tests: Drop yield() helper function · ba0cfdd2
      Kristian Høgsberg authored
      Remaining use case was when we move the pointer.  This doesn't change
      geometry so we can just use a wl_display_roundtrip() to make sure
      we get the request to the server and receive the resulting events.
      ba0cfdd2
    • Kristian Høgsberg's avatar
      button-test: Use wl_display_roundtrip instead of yield() · f63fab72
      Kristian Høgsberg authored
      A round trip is sufficient here.  We need to make sure that the server
      has received the wl_test request and that we've received the event
      that the request triggers.  The wl_display_roundtrip() helper does
      exactly that: it sends a wl_display.sync request, which will hit the
      server after the wl_test requests and thus the wl_callback.done event
      will come back after the server has seen all the previous requests and
      after we've handled all preceeding event.
      f63fab72
  12. 11 Dec, 2012 1 commit
  13. 04 Oct, 2012 1 commit