Skip to content
  • Lina Versace's avatar
    egl: Test behavior of eglQuerySurface() · 39b276b6
    Lina Versace authored
    
    
    Add the following tests:
    
    * egl-query-surface --bad-surface
          Call eglQuerySurface(surf=0) and expect that error EGL_BAD_SURFACE
          is generated.
    
    * egl-query-surface --bad-attr
          Call eglQuerySurface(attr=EGL_DONT_CARE) and expect that error
          EGL_BAD_ATTRIBUTE is generated.
    
    * egl-query-surface --attr=EGL_WIDTH
    * egl-query-surface --attr=EGL_HEIGHT
          Call eglQueryDrawable() with the given attribute.
    
    All tests pass on Fedora 16.
    They also pass with the proprietary Nvidia driver on Fedora 15.
    
    Signed-off-by: default avatarChad Versace <chad@chad-versace.us>
    39b276b6