aboutsummaryrefslogtreecommitdiff
path: root/libgfortran/io
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2015-02-06 23:19:32 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2015-02-06 23:19:32 +0000
commita82289f536862ea01ae5b221f0e1e3a79eb5b541 (patch)
treed04c75fc76af49ba9707bb68e973dee63a8c0473 /libgfortran/io
parent45beb02eb0ab4714349e56e854c96cf2910a1f1b (diff)
downloadgcc-a82289f536862ea01ae5b221f0e1e3a79eb5b541.zip
gcc-a82289f536862ea01ae5b221f0e1e3a79eb5b541.tar.gz
gcc-a82289f536862ea01ae5b221f0e1e3a79eb5b541.tar.bz2
PR jit/64752 - Rewrite jit testsuite to eliminate use of "file"
gcc/testsuite/ChangeLog: PR jit/64752 * jit.dg/create-code-for-hello-world-executable.h: New file, taken from jit.dg/test-compile-to-executable.c's create_code, with a clarification of the output message. * jit.dg/harness.h (CHECK_NO_ERRORS): Add test and __func__ to the pass/fail message. (test_jit): Use CHECK_NO_ERRORS when calling gcc_jit_context_compile_to_file. * jit.dg/jit.exp (jit-dg-test): Update grep for rename of jit-verify-compile-to-file to jit-verify-output-file-was-created. (jit-setup-compile-to-file): Likewise. Add a verbose comment about deletions that are attempted. (jit-verify-compile-to-file): Rename to... (jit-verify-output-file-was-created): ...this, and drop the attempt to run "file" and verify the output. (jit-verify-assembler): New function. (jit-verify-object): New function. (jit-verify-dynamic-library): New function. * jit.dg/test-compile-to-assembler.c (create_code): Eliminate in favor of an implementation from new file create-code-for-hello-world-executable.h, which also adds a "main". (dg-final): Replace jit-verify-compile-to-file with jit-verify-output-file-was-created, and invoke new function jit-verify-assembler. * jit.dg/test-compile-to-dynamic-library.c (create_code): Clarify the output message. (dg-final): Replace jit-verify-compile-to-file with jit-verify-output-file-was-created, and invoke new function jit-verify-dynamic-library. * jit.dg/test-compile-to-executable.c (create_code): Eliminate in favor of an implementation from new file create-code-for-hello-world-executable.h, which also adds a "main". (dg-final): Replace jit-verify-compile-to-file with jit-verify-output-file-was-created. Strengthen the expected stdout from the built executable. * jit.dg/test-compile-to-object.c (create_code): Eliminate in favor of an implementation from new file create-code-for-hello-world-executable.h, which also adds a "main". (dg-final): Replace jit-verify-compile-to-file with jit-verify-output-file-was-created, and invoke new function jit-verify-object. * jit.dg/verify-dynamic-library.c: New source file. From-SVN: r220494
Diffstat (limited to 'libgfortran/io')
0 files changed, 0 insertions, 0 deletions