diff options
author | David Schleef <ds@schleef.org> | 2010-06-08 03:42:31 +0400 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2010-06-08 05:20:14 +0400 |
commit | 44508b748a2db22abb732d1a64f95f87844b2329 (patch) | |
tree | 6b6362a19b2d5001e61cb8863267f2c4179621ba /testsuite | |
parent | ca98d41c4f33af9f8c12d403e06a9926bfd70f59 (diff) |
tests: fix distcheck
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/compile_parse.c | 8 | ||||
-rw-r--r-- | testsuite/compile_parse_neon.c | 8 |
2 files changed, 14 insertions, 2 deletions
diff --git a/testsuite/compile_parse.c b/testsuite/compile_parse.c index a950fdc..105ef17 100644 --- a/testsuite/compile_parse.c +++ b/testsuite/compile_parse.c @@ -20,7 +20,7 @@ main (int argc, char *argv[]) int n; int i; OrcProgram **programs; - const char *filename = "test.orc"; + const char *filename = NULL; orc_init (); orc_test_init (); @@ -28,6 +28,12 @@ main (int argc, char *argv[]) if (argc >= 2) { filename = argv[1]; } + if (filename == NULL) { + filename = getenv ("testfile"); + } + if (filename == NULL) { + filename = "test.orc"; + } code = read_file (filename); if (!code) { printf("compile_parse_test <file.orc>\n"); diff --git a/testsuite/compile_parse_neon.c b/testsuite/compile_parse_neon.c index 2de4074..d65ce60 100644 --- a/testsuite/compile_parse_neon.c +++ b/testsuite/compile_parse_neon.c @@ -20,7 +20,7 @@ main (int argc, char *argv[]) int n; int i; OrcProgram **programs; - const char *filename = "test.orc"; + const char *filename = NULL; orc_init (); orc_test_init (); @@ -28,6 +28,12 @@ main (int argc, char *argv[]) if (argc >= 2) { filename = argv[1]; } + if (filename == NULL) { + filename = getenv ("testfile"); + } + if (filename == NULL) { + filename = "test.orc"; + } code = read_file (filename); if (!code) { printf("compile_parse_test <file.orc>\n"); |