summaryrefslogtreecommitdiff
path: root/test/cairo-test-runner.c
diff options
context:
space:
mode:
authorAndrea Canciani <ranma42@gmail.com>2011-10-02 16:15:59 -0700
committerAndrea Canciani <ranma42@gmail.com>2011-11-12 20:49:08 +0100
commit6a0ba303035997fcd5f28bcd32297f9bc21bd45a (patch)
treead6dfc64e0bf363d3201c286554d983b1cad342d /test/cairo-test-runner.c
parent0e18cc6d27e59e42c6632b21c5502174c8a9eb08 (diff)
downloadcairo-6a0ba303035997fcd5f28bcd32297f9bc21bd45a.tar.gz
Sort option flags
Keep the option flags in alphabetical order. This makes it easier to check for collisions or missing handlers. Avoids an internal error when passing flags -c, -r or -v to cairo-analyse-trace.
Diffstat (limited to 'test/cairo-test-runner.c')
-rw-r--r--test/cairo-test-runner.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/cairo-test-runner.c b/test/cairo-test-runner.c
index 28e4b5dc0..c0a7e953c 100644
--- a/test/cairo-test-runner.c
+++ b/test/cairo-test-runner.c
@@ -367,7 +367,7 @@ _parse_cmdline (cairo_test_runner_t *runner, int *argc, char **argv[])
int c;
while (1) {
- c = _cairo_getopt (*argc, *argv, ":afkxsl");
+ c = _cairo_getopt (*argc, *argv, ":afklsx");
if (c == -1)
break;
@@ -375,21 +375,21 @@ _parse_cmdline (cairo_test_runner_t *runner, int *argc, char **argv[])
case 'a':
runner->full_test = TRUE;
break;
- case 's':
- runner->slow = TRUE;
+ case 'f':
+ runner->foreground = TRUE;
+ break;
+ case 'k':
+ runner->keyword_match = TRUE;
break;
case 'l':
runner->list_only = TRUE;
break;
- case 'f':
- runner->foreground = TRUE;
+ case 's':
+ runner->slow = TRUE;
break;
case 'x':
runner->exit_on_failure = TRUE;
break;
- case 'k':
- runner->keyword_match = TRUE;
- break;
default:
fprintf (stderr, "Internal error: unhandled option: %c\n", c);
/* fall-through */