diff options
author | Eric Anholt <anholt@FreeBSD.org> | 2006-04-19 09:13:55 -0700 |
---|---|---|
committer | Eric Anholt <anholt@FreeBSD.org> | 2006-04-19 09:13:55 -0700 |
commit | c1d2c663c385a4c0e2ac6ba03664cf252dff62b0 (patch) | |
tree | 34fd2dfdee8e177cc554bd47d97f884fd3f25f5c /main.c | |
parent | d5949bcc33e115f12762127093f1d5b3158c1c01 (diff) |
Add a trivial test for Triangles, TriStrip, and TriFan, which exposed a security
flaw in the server
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -110,7 +110,7 @@ usage (char *program) fprintf(stderr, "usage: %s [-d|--display display] [-v|--verbose]\n" "\t[-t test1,test2,...] [--sync]\n" "\tAvailable tests: dcoors,scoords,mcoords,tscoords,\n" - "\t\ttmcoords,blend,composite,cacomposite,gradients\n", + "\t\ttmcoords,blend,composite,cacomposite,gradients,triangles\n", program); exit(1); } @@ -171,6 +171,8 @@ int main(int argc, char **argv) enabled_tests |= TEST_CACOMPOSITE; } else if (strcmp(test, "gradients") == 0) { enabled_tests |= TEST_GRADIENTS; + } else if (strcmp(test, "triangles") == 0) { + enabled_tests |= TEST_TRIANGLES; } else { usage(argv[0]); } |