aboutsummaryrefslogtreecommitdiff
path: root/pixman/test/composite.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2011-03-24 07:51:24 +0000
committermarha <marha@users.sourceforge.net>2011-03-24 07:51:24 +0000
commit81aeaf653a832c4054d9a40b1cc796911521a739 (patch)
treecf49e5efe23001c76bee6fb625e26801bd7edff0 /pixman/test/composite.c
parentb63d68318fdce5002f42a818f3dd3dff126ec2c2 (diff)
parentb39f063f74bf0163eaf34db03134f226d18142ec (diff)
downloadvcxsrv-81aeaf653a832c4054d9a40b1cc796911521a739.tar.gz
vcxsrv-81aeaf653a832c4054d9a40b1cc796911521a739.tar.bz2
vcxsrv-81aeaf653a832c4054d9a40b1cc796911521a739.zip
svn merge ^/branches/released .
Diffstat (limited to 'pixman/test/composite.c')
-rw-r--r--pixman/test/composite.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/pixman/test/composite.c b/pixman/test/composite.c
index 50a3c0644..5e486708d 100644
--- a/pixman/test/composite.c
+++ b/pixman/test/composite.c
@@ -868,7 +868,7 @@ main (int argc, char **argv)
{
#define N_TESTS (8 * 1024 * 1024)
int result = 0;
- int i;
+ uint32_t i;
if (argc > 1)
{
@@ -890,15 +890,22 @@ main (int argc, char **argv)
}
}
+ uint32_t seed;
+
+ if (getenv ("PIXMAN_RANDOMIZE_TESTS"))
+ seed = get_random_seed();
+ else
+ seed = 1;
+
#ifdef USE_OPENMP
-# pragma omp parallel for default(none) shared(result) shared(argv)
+# pragma omp parallel for default(none) shared(result, argv, seed)
#endif
- for (i = 1; i <= N_TESTS; ++i)
+ for (i = seed; i <= N_TESTS; ++i)
{
if (!result && !run_test (i))
{
- printf ("Test %d failed.\n", i);
-
+ printf ("Test 0x%08X failed.\n", i);
+
result = i;
}
}