aboutsummaryrefslogtreecommitdiff
path: root/tests/bugs
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2011-01-04 10:13:00 -0800
committerEric Anholt <eric@anholt.net>2011-01-04 10:15:27 -0800
commit7b74e23297e2f8d89b1ca38a182fc6f1a76c4152 (patch)
tree4f318ea089c8275f4e61aa282802afb916dd8a1b /tests/bugs
parent03cee169f28cd8c0b5b7acde49975c64e453f07f (diff)
fdo20701: Report pass still if the driver claims the FBO is unsupported.
This test was to see if the driver segfaulted on this unsupported framebuffer attachment. Reporting unsupported is an improvement in the driver over what we were tolerating before.
Diffstat (limited to 'tests/bugs')
-rw-r--r--tests/bugs/fdo20701.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/bugs/fdo20701.c b/tests/bugs/fdo20701.c
index 9d52ba4a..e5a1b592 100644
--- a/tests/bugs/fdo20701.c
+++ b/tests/bugs/fdo20701.c
@@ -102,8 +102,10 @@ init(void)
if (status != GL_FRAMEBUFFER_COMPLETE_EXT) {
printf("%s:%u: framebuffer status = 0x%04x\n",
__FUNCTION__, __LINE__, status);
- printf("PIGLIT: {'result': 'fail' }\n");
- exit(1);
+ if (status == GL_FRAMEBUFFER_UNSUPPORTED_EXT)
+ piglit_report_result(PIGLIT_SUCCESS);
+ else
+ piglit_report_result(PIGLIT_FAILURE);
}
}