[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Multiple dg-do do not work.

From: Dominik Vogt
Subject: Multiple dg-do do not work.
Date: Tue, 8 Mar 2016 14:29:10 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

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?


Dominik ^_^  ^_^


Dominik Vogt
IBM Germany

reply via email to

[Prev in Thread] Current Thread [Next in Thread]