Bug 70248 - debug-object-label.c(49) : error C2057: expected constant expression
Summary: debug-object-label.c(49) : error C2057: expected constant expression
Status: RESOLVED FIXED
Alias: None
Product: piglit
Classification: Unclassified
Component: tests (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Windows (All)
: medium blocker
Assignee: Eric Anholt
QA Contact: Eric Anholt
URL:
Whiteboard:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2013-10-07 17:21 UTC by Vinson Lee
Modified: 2013-10-08 01:18 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Vinson Lee 2013-10-07 17:21:59 UTC
piglit: 425d6d56f5db2294b090f3b8d4aea682844cac35 (master)

debug-object-label.c
debug-object-label.c(49) : error C2057: expected constant expression
debug-object-label.c(49) : error C2466: cannot allocate an array of constant size 0
debug-object-label.c(49) : error C2133: 'label' : unknown size
debug-object-label.c(112) : error C2057: expected constant expression
debug-object-label.c(112) : error C2466: cannot allocate an array of constant size 0
debug-object-label.c(112) : error C2133: 'length' : unknown size
debug-object-label.c(113) : error C2057: expected constant expression
debug-object-label.c(113) : error C2466: cannot allocate an array of constant size 0
debug-object-label.c(113) : error C2087: 'label' : missing subscript
debug-object-label.c(113) : error C2133: 'label' : unknown size
debug-object-label.c(282) : error C2057: expected constant expression
debug-object-label.c(282) : error C2466: cannot allocate an array of constant size 0
debug-object-label.c(282) : error C2133: 'label' : unknown size
debug-object-label.c(368) : error C2057: expected constant expression
debug-object-label.c(368) : error C2466: cannot allocate an array of constant size 0
debug-object-label.c(368) : error C2133: 'buffers' : unknown size
debug-object-label.c(370) : error C2057: expected constant expression
debug-object-label.c(370) : error C2466: cannot allocate an array of constant size 0
debug-object-label.c(370) : error C2133: 'label' : unknown size


commit 6a1250d27ee56afdddf532afe3edbc4e436355c7
Author: Timothy Arceri <t_arceri@yahoo.com.au>
Date:   Tue Sep 24 21:16:25 2013 +1000

    KHR_debug: test ObjectLabel(), GetObjectLabel(), ObjectPtrLabel() and GetObjectPtrLabel()
    
    v10: Clean up whitespace nits, fix up naming and concurrency in the
         tests list (changes by anholt).
    
    V9: replace array index magic numbers with enums
    
    V8: make sure all each object is available in the OpenGL
    implementation before doing get/set tests
    fix copy and paste mistake with framebuffer/renderbuffer tests
    
    V7: be defensive when testing max label, use fprintf for errors,
    code tidy ups, and added get/set tests for each object type
    
    V6: fix spelling of generated in multiple places
    
    V5: Removed unneeded assignment that was also out of bounds
    
    V4: Removed failure test that will never be true
    
    V3: changed indentation to tabs, use test label constants
    and remove unused variable
    
    V2: fixed whitespaces, broke tests into subtests,
    added missing build dir, and tidied up fail messages
    
    Signed-off-by: Timothy Arceri <t_arceri@yahoo.com.au>
    Reviewed-by: Eric Anholt <eric@anholt.net>
Comment 1 Timothy Arceri 2013-10-08 01:16:48 UTC
Fixed by 6a1250d27ee56afdddf532afe3edbc4e436355c7
Comment 2 Timothy Arceri 2013-10-08 01:18:59 UTC
Whoops I mean fixed by c634685dcdcf090b1cd8315d7116a39d5ae15ede


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.