From 3197f554c1f052cd006eb9943b6093c31ab6bfec Mon Sep 17 00:00:00 2001 From: David Schleef Date: Mon, 29 Jun 2009 14:00:21 -0700 Subject: test: use rand() instead of random() --- orc-test/orctest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'orc-test/orctest.c') diff --git a/orc-test/orctest.c b/orc-test/orctest.c index 6789a68..932284d 100644 --- a/orc-test/orctest.c +++ b/orc-test/orctest.c @@ -335,7 +335,7 @@ OrcTestResult orc_test_compare_output (OrcProgram *program) { OrcExecutor *ex; - int n = 64 + (random()&0xf); + int n = 64 + (rand()&0xf); void *dest_exec[4] = { NULL, NULL, NULL, NULL }; void *dest_emul[4] = { NULL, NULL, NULL, NULL }; void *ptr_exec[4]; -- cgit v1.2.3 From 74f9d2b4d9cbcd8ae019a1de497efc28d42d5648 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Tue, 30 Jun 2009 15:31:53 -0700 Subject: test: fix printf format --- orc-test/orctest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'orc-test/orctest.c') diff --git a/orc-test/orctest.c b/orc-test/orctest.c index 932284d..f234ecf 100644 --- a/orc-test/orctest.c +++ b/orc-test/orctest.c @@ -68,7 +68,7 @@ orc_test_gcc_compile (OrcProgram *p) fclose (file); #if defined(HAVE_POWERPC) - sprintf (cmd, "gcc -Wa,-mregnames -Wall -c %s -o %d", source_filename, + sprintf (cmd, "gcc -Wa,-mregnames -Wall -c %s -o %s", source_filename, obj_filename); #else sprintf (cmd, "gcc -Wall -c %s -o %s", source_filename, -- cgit v1.2.3