summaryrefslogtreecommitdiff
path: root/tests/util/sized-internalformats.c
diff options
context:
space:
mode:
authorPaul Berry <stereotype441@gmail.com>2013-07-26 12:56:15 -0700
committerPaul Berry <stereotype441@gmail.com>2013-07-30 09:27:48 -0700
commit2c17aa6bd5774e7dc27f1ba454302ab38b3d4ed3 (patch)
treed59da224faf6a346e221deb61a6093bc92d31def /tests/util/sized-internalformats.c
parent7fdef12cc098487cf684ae75c87b13520e955c81 (diff)
framework: parse piglit core args during piglit_gl_test_config_init()
This makes it safe to examine argc and argv between PIGLIT_GL_TEST_CONFIG_BEGIN and PIGLIT_GL_TEST_CONFIG_END, since piglit fragmework arguments have already been stripped away. That in turn means that the following tests can use PIGLIT_GL_TEST_CONFIG_{BEGIN,END} instead of having to declare their own main() functions: - spec/arb_texture_buffer_object/formats.c - spec/gl-3.0/required-renderbuffer-attachment-formats.c - spec/gl-3.0/required-sized-texture-formats.c - spec/gl-3.0/required-texture-attachment-formats.c - spec/gles-3.0/oes_compressed_etc2_texture-miptree.c Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'tests/util/sized-internalformats.c')
-rw-r--r--tests/util/sized-internalformats.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/util/sized-internalformats.c b/tests/util/sized-internalformats.c
index 626d215bc..ae949c7d1 100644
--- a/tests/util/sized-internalformats.c
+++ b/tests/util/sized-internalformats.c
@@ -385,8 +385,6 @@ setup_required_size_test(int argc, char **argv,
if (argc < 2)
usage(argv[0]);
- piglit_gl_test_config_init(config);
-
target_version = strtol(argv[1], NULL, 0);
switch (target_version) {