Commit a12e24fc by Jeffrey A Law Committed by Jeff Law

c-torture.exp: Avoid the "compare executables" optimization when testing native.

        * lib/c-torture.exp: Avoid the "compare executables" optimization
        when testing native.

From-SVN: r29018
parent 61c48fbf
Tue Aug 31 17:57:49 1999 Jeffrey A Law (law@cygnus.com)
* lib/c-torture.exp: Avoid the "compare executables" optimization
when testing native.
Sun Aug 29 14:35:41 1999 Jeffrey A Law (law@cygnus.com) Sun Aug 29 14:35:41 1999 Jeffrey A Law (law@cygnus.com)
* gcc.c-torture/execute/990829-1.c: New test. * gcc.c-torture/execute/990829-1.c: New test.
......
...@@ -189,8 +189,22 @@ proc c-torture-execute { src args } { ...@@ -189,8 +189,22 @@ proc c-torture-execute { src args } {
set ignore_me [eval $torture_eval_before_execute] set ignore_me [eval $torture_eval_before_execute]
} }
# Sometimes we end up creating identical executables for two
# consecutive sets of different of compiler options.
#
# In such cases we know the result of this test will be identical
# to the result of the last test.
#
# So in cases where the time to load and run/simulate the test
# is relatively high, compare the two binaries and avoid rerunning
# tests if the executables are identical.
#
# Do not do this for native testing since the cost to load/execute
# the test is fairly small and the comparison step actually slows
# the entire process down because it usually does not "hit".
set skip 0; set skip 0;
if [info exists oldexec] { if { ![isnative] && [info exists oldexec] } {
if { [remote_file build cmp $oldexec $execname] == 0 } { if { [remote_file build cmp $oldexec $execname] == 0 } {
set skip 1; set skip 1;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment