diff options
author | David Schleef <ds@schleef.org> | 2011-05-13 16:21:43 -0700 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2011-05-13 16:29:17 -0700 |
commit | 351ec8a42e670a4529e2419e09054245fa452341 (patch) | |
tree | d3032e44d580357c6a1b0b75aeaa98a620cf9cf1 /orc-test | |
parent | dff5f8bebbbe3b07ca4c7caa4872a2ddcb487deb (diff) |
tests: print error message in test failures
Diffstat (limited to 'orc-test')
-rw-r--r-- | orc-test/orctest.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/orc-test/orctest.c b/orc-test/orctest.c index 987dddd..21c1f3c 100644 --- a/orc-test/orctest.c +++ b/orc-test/orctest.c @@ -78,9 +78,11 @@ orc_test_gcc_compile (OrcProgram *p) result = orc_program_compile_full (p, target, flags); if (ORC_COMPILE_RESULT_IS_FATAL(result)) { + printf (" error: %s\n", orc_program_get_error (p)); return ORC_TEST_FAILED; } if (!ORC_COMPILE_RESULT_IS_SUCCESSFUL(result)) { + printf (" no code generated: %s\n", orc_program_get_error (p)); return ORC_TEST_INDETERMINATE; } @@ -203,6 +205,7 @@ orc_test_gcc_compile_neon (OrcProgram *p) result = orc_program_compile_full (p, target, flags); if (!ORC_COMPILE_RESULT_IS_SUCCESSFUL(result)) { + printf (" no code generated: %s\n", orc_program_get_error (p)); return ORC_TEST_INDETERMINATE; } @@ -296,6 +299,7 @@ orc_test_gcc_compile_c64x (OrcProgram *p) result = orc_program_compile_full (p, target, flags); if (!ORC_COMPILE_RESULT_IS_SUCCESSFUL(result)) { + printf (" no code generated: %s\n", orc_program_get_error (p)); return ORC_TEST_INDETERMINATE; } @@ -553,6 +557,7 @@ orc_test_compare_output_full (OrcProgram *program, int flags) goto out; } if (!ORC_COMPILE_RESULT_IS_SUCCESSFUL(result)) { + printf (" no code generated: %s\n", orc_program_get_error (program)); ret = ORC_TEST_INDETERMINATE; goto out; } |