There is this comment in dg.exp:

  # Record what to do (compile/run/etc.)
  #
  # Multiple instances are supported (since we don't support target and xfail
  # selectors on one line), though it doesn't make much sense to change the
  # compile/assemble/link/run field.  Nor does it make any sense to have
  # multiple lines of target selectors (use one line).
  #
  proc dg-do { args } {
  ...

However, multiple dg-do don't seem to work:

  dg-do run { condition }
  dg-do assemble { ! condition }

(As an example, "run" the test if the cpu supports certain
instructions that are used in an executable, otherwise just
assemble it.)

What happens is that "assemble" is done regardless of whether the
condition is true or not, and "run" ios never done.  This is
probably because dg-do overwrites do-what regardless of whether
the condition is true or not:

  proc dg-do { args } {
    ...
    (check selector)
    ...
    set do-what [list [lindex $args 1] $selected $expected]
  }

Any ideas?

Ciao

Dominik ^_^  ^_^

-- 

Dominik Vogt
IBM Germany


_______________________________________________
DejaGnu mailing list
DejaGnu@gnu.org
https://lists.gnu.org/mailman/listinfo/dejagnu

Reply via email to