diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-04-15 22:37:04 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-04-15 22:37:04 +0000 |
commit | 42e86fb1e678fba31d4ba8327b74d66b8bc72471 (patch) | |
tree | 5030e66b28e6accd5db365bdd647f6a54506e65b /test/DebugInfo/2006-11-06-StackTrace.cpp | |
parent | d3b1f6d3e0597baa77bf54cfe072c2fe974f56c1 (diff) |
For PR1319: Upgrade to new test harness.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36092 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/DebugInfo/2006-11-06-StackTrace.cpp')
-rw-r--r-- | test/DebugInfo/2006-11-06-StackTrace.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/test/DebugInfo/2006-11-06-StackTrace.cpp b/test/DebugInfo/2006-11-06-StackTrace.cpp index 9d7c63afc6..e268c207f5 100644 --- a/test/DebugInfo/2006-11-06-StackTrace.cpp +++ b/test/DebugInfo/2006-11-06-StackTrace.cpp @@ -1,11 +1,13 @@ // This is a regression test on debug info to make sure that we can get a // meaningful stack trace from a C++ program. -// RUN: %llvmgcc -S -O0 -g %s -o - | llvm-as | llc --disable-fp-elim -o Output/StackTrace.s -f -// RUN: as Output/StackTrace.s -o Output/StackTrace.o -// RUN: g++ Output/StackTrace.o -o Output/StackTrace.exe -// RUN: ( echo "break DeepStack::deepest"; echo "run 17" ; echo "where" ) > Output/StackTrace.gdbin -// RUN: gdb -q -batch -n -x Output/StackTrace.gdbin Output/StackTrace.exe | tee Output/StackTrace.out | grep '#0 DeepStack::deepest.*(this=.*,.*x=33)' -// RUN: gdb -q -batch -n -x Output/StackTrace.gdbin Output/StackTrace.exe | grep '#7 0x.* in main.*(argc=[12],.*argv=.*)' +// RUN: %llvmgcc -S -O0 -g %s -o - | llvm-as | llc --disable-fp-elim -o %t.s -f +// RUN: as %t.s -o %t.o +// RUN: %link %t.o -o %t.exe +// RUN: echo {break DeepStack::deepest\nrun 17\nwhere\n} > %t.in +// RUN: gdb -q -batch -n -x %t.in %t.exe | tee %t.out | \ +// RUN: grep {#0 DeepStack::deepest.*(this=.*,.*x=33)} +// RUN: gdb -q -batch -n -x %t.in %t.exe | \ +// RUN: grep {#7 0x.* in main.*(argc=\[12\],.*argv=.*)} // XFAIL: i[1-9]86|alpha|ia64|arm|x86_64 #include <stdlib.h> |