summaryrefslogtreecommitdiff
path: root/tests/shaders/useshaderprogram-bad-program.c
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2011-04-29 17:56:29 +0200
committerMarek Olšák <maraeo@gmail.com>2011-04-29 18:08:10 +0200
commit73617fa907aa54dea538eccb6ac93ab02d7b34f9 (patch)
tree12a48006f39f40dd424aa2e51e41d26b0f867e8c /tests/shaders/useshaderprogram-bad-program.c
parent03cc90919422d995d24151e499c9f120404d50b0 (diff)
Rename PIGLIT_SUCCESS and PIGLIT_FAILURE to PIGLIT_PASS and PIGLIT_FAIL, resp.
Diffstat (limited to 'tests/shaders/useshaderprogram-bad-program.c')
-rw-r--r--tests/shaders/useshaderprogram-bad-program.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/shaders/useshaderprogram-bad-program.c b/tests/shaders/useshaderprogram-bad-program.c
index 5b6b95362..4318f6be6 100644
--- a/tests/shaders/useshaderprogram-bad-program.c
+++ b/tests/shaders/useshaderprogram-bad-program.c
@@ -42,13 +42,13 @@ static const char good_vs_text[] =
enum piglit_result
piglit_display(void)
{
- return PIGLIT_FAILURE;
+ return PIGLIT_FAIL;
}
void
piglit_init(int argc, char **argv)
{
- enum piglit_result result = PIGLIT_SUCCESS;
+ enum piglit_result result = PIGLIT_PASS;
GLenum err;
GLint ok;
GLuint prog;
@@ -73,7 +73,7 @@ piglit_init(int argc, char **argv)
fprintf(stderr,
"Linking with unresolved symbol succeeded when it "
"should have failed.\n");
- piglit_report_result(PIGLIT_FAILURE);
+ piglit_report_result(PIGLIT_FAIL);
}
/* There shouldn't be any GL errors, but clear them all just to be
@@ -93,7 +93,7 @@ piglit_init(int argc, char **argv)
"glUseShaderProgramEXT called with\n"
"an unlinked shader program (expected 0x%04x).\n",
err, GL_INVALID_OPERATION);
- result = PIGLIT_FAILURE;
+ result = PIGLIT_FAIL;
}
glDeleteProgram(prog);
@@ -124,7 +124,7 @@ piglit_init(int argc, char **argv)
"glUseShaderProgramEXT called with\n"
"an unlinked shader program (expected 0x%04x).\n",
err, GL_INVALID_OPERATION);
- result = PIGLIT_FAILURE;
+ result = PIGLIT_FAIL;
}
glDeleteProgram(prog);