| OLD | NEW |
| 1 # Copyright 2012 Free Software Foundation, Inc. | 1 # Copyright 2012-2013 Free Software Foundation, Inc. |
| 2 | 2 |
| 3 # This program is free software; you can redistribute it and/or modify | 3 # This program is free software; you can redistribute it and/or modify |
| 4 # it under the terms of the GNU General Public License as published by | 4 # it under the terms of the GNU General Public License as published by |
| 5 # the Free Software Foundation; either version 3 of the License, or | 5 # the Free Software Foundation; either version 3 of the License, or |
| 6 # (at your option) any later version. | 6 # (at your option) any later version. |
| 7 # | 7 # |
| 8 # This program is distributed in the hope that it will be useful, | 8 # This program is distributed in the hope that it will be useful, |
| 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 # GNU General Public License for more details. | 11 # GNU General Public License for more details. |
| 12 # | 12 # |
| 13 # You should have received a copy of the GNU General Public License | 13 # You should have received a copy of the GNU General Public License |
| 14 # along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 # along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | 15 |
| 16 if {[skip_shlib_tests]} { | 16 if {[skip_shlib_tests]} { |
| 17 untested jit-simple.exp | 17 untested jit-simple.exp |
| 18 return -1 | 18 return -1 |
| 19 } | 19 } |
| 20 | 20 |
| 21 if {[get_compiler_info]} { | 21 if {[get_compiler_info]} { |
| 22 warning "Could not get compiler info" | 22 warning "Could not get compiler info" |
| 23 untested jit-simple.exp | 23 untested jit-simple.exp |
| 24 return 1 | 24 return 1 |
| 25 } | 25 } |
| 26 | 26 |
| 27 # | 27 # |
| 28 # test running programs | 28 # test running programs |
| 29 # | 29 # |
| 30 | 30 |
| 31 set testfile jit-simple | 31 standard_testfile |
| 32 set srcfile ${testfile}.c | 32 |
| 33 set binfile ${objdir}/${subdir}/${testfile} | 33 if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} { |
| 34 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
ug}] != "" } { | |
| 35 untested jit-simple.exp | 34 untested jit-simple.exp |
| 36 return -1 | 35 return -1 |
| 37 } | 36 } |
| 38 | 37 |
| 39 # A helper for jit_test_reread that invokes gdb_run_cmd. | 38 # A helper for jit_test_reread that invokes gdb_run_cmd. |
| 40 proc jit_run {msg} { | 39 proc jit_run {msg} { |
| 41 global decimal gdb_prompt | 40 global decimal gdb_prompt |
| 42 | 41 |
| 43 gdb_run_cmd | 42 gdb_run_cmd |
| 44 gdb_expect { | 43 gdb_expect { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 72 pass "recompile $srcfile" | 71 pass "recompile $srcfile" |
| 73 | 72 |
| 74 # jit_run "second run" | 73 # jit_run "second run" |
| 75 | 74 |
| 76 runto_main | 75 runto_main |
| 77 gdb_test "print &__jit_debug_descriptor" "= .*" "blah 1" | 76 gdb_test "print &__jit_debug_descriptor" "= .*" "blah 1" |
| 78 } | 77 } |
| 79 } | 78 } |
| 80 | 79 |
| 81 jit_test_reread | 80 jit_test_reread |
| OLD | NEW |