Tests are run multiple times

Krister Walfridsson <[email protected]>
Newsgroups gmane.comp.sysutils.dejagnu.bugs
Message-ID <[email protected]>
[This is a resend of a mail I sent to [email protected] but didn't get
any answer to...]

I have noticed that dejagnu-1.4.3 runs some of my tests multiple times.
This happens with deep directory structures, e.g. for

  testsuite/foo.test/foo.exp
  testsuite/foo.test/foo/foo.exp
  testsuite/foo.test/foo/bar/bar.exp

bar.exp will be run twice. I have seen this with the gcc testsuite too

  Running /gcctmp/gcc/gcc/testsuite/gcc.c-torture/execute/execute.exp ..
  Running /gcctmp/gcc/gcc/testsuite/gcc.c-torture/execute/ieee/ieee.exp
  Running /gcctmp/gcc/gcc/testsuite/gcc.c-torture/execute/ieee/ieee.exp

so I don't think it's just my tests that are broken...


This behaviour seems to have been introduced with the change

  2001-11-02  Philip A. Wilsey  <[email protected]>
          * lib/utils.exp: Need to pass -all to getdirs, so it descends
          through all the subdirectories.

Is this behaviour what was intended?

   /Krister
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.