diff options
author | Matthijs Kooijman <matthijs@stdin.nl> | 2008-06-10 12:28:43 +0000 |
---|---|---|
committer | Matthijs Kooijman <matthijs@stdin.nl> | 2008-06-10 12:28:43 +0000 |
commit | a2fa19afd7ee983bdad18d321dedd8a837aee7b1 (patch) | |
tree | 8e13681aeb6e597410aadc4b7674af248e7be24a /test/lib/llvm.exp | |
parent | 1368bae29d0bac51bdc9b150447fb1e56902a4ff (diff) | |
download | external_llvm-a2fa19afd7ee983bdad18d321dedd8a837aee7b1.zip external_llvm-a2fa19afd7ee983bdad18d321dedd8a837aee7b1.tar.gz external_llvm-a2fa19afd7ee983bdad18d321dedd8a837aee7b1.tar.bz2 |
Change llvm.exp so it no longer ignores some errors when executing dejagnu
tests. This breaks 80 tests in the tree.
The interesting part here is that this no longer ignores syntax errors
in RUN command lines. Some tests have not been working all the time because of
this.
The tricky part is that it now also views any stderr output as an error. This
can be suppressed in tcl 8.5, but let's not add this dependency. Instead, all
testcases should be changed to redirect stderr if they expect stderr output.
This holds in particular for lines like:
; RUN: not llvm-as < %s
where an error is expected (but I think I can solve this by modifying the not
script). Also, compilations resulting in warnings will now also fail (so
the warnings should be fixed, disabled or redirected...).
I'll continue with fixing the testcases that are broken now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52172 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/lib/llvm.exp')
-rw-r--r-- | test/lib/llvm.exp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/lib/llvm.exp b/test/lib/llvm.exp index b59f341..4093422 100644 --- a/test/lib/llvm.exp +++ b/test/lib/llvm.exp @@ -31,8 +31,12 @@ proc execOneLine { test PRS outcome lineno line } { set resultmsg "$test$PRS\nFailed with posix($posixNum,$posixMsg)$errmsg" } NONE { + # Any other error such as stderr output of a program, or syntax error in + # the RUN line. + set resultmsg "$test$PRS\nFailed with unknown error (or has stderr output)$errmsg" } default { + set resultmsg "$test$PRS\nFailed with unknown error$errmsg" } } } |