[llvm-commits] CVS: llvm/test/Regression/DebugInfo/2006-11-06-StackTrace.cpp

Reid Spencer reid at x10sys.com
Mon Nov 6 23:58:28 PST 2006



Changes in directory llvm/test/Regression/DebugInfo:

2006-11-06-StackTrace.cpp updated: 1.1 -> 1.2
---
Log message:

Make some corrections to this test case.


---
Diffs of the changes:  (+6 -4)

 2006-11-06-StackTrace.cpp |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)


Index: llvm/test/Regression/DebugInfo/2006-11-06-StackTrace.cpp
diff -u llvm/test/Regression/DebugInfo/2006-11-06-StackTrace.cpp:1.1 llvm/test/Regression/DebugInfo/2006-11-06-StackTrace.cpp:1.2
--- llvm/test/Regression/DebugInfo/2006-11-06-StackTrace.cpp:1.1	Tue Nov  7 01:31:37 2006
+++ llvm/test/Regression/DebugInfo/2006-11-06-StackTrace.cpp	Tue Nov  7 01:58:02 2006
@@ -1,9 +1,11 @@
 // 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 Output/%s.ll
-// RUN: llvm-as < Output/%s.ll | llc -o Output/%s.s
-// RUN: gcc -g Output/%s.s -o Output/%s.exe
-// RUN: ( echo "break DeepStack::deepest"; echo "run 17" ; echo "where" ) | gdb Output/%s.exe | grep '#0  DeepStack::deepest (this=.*,x=33)'
+// RUN: %llvmgcc -S -O0 -g %s -o - | llvm-as | llc -o Output/StackTrace.s -f
+// RUN: gcc -g Output/StackTrace.s -o Output/StackTrace.exe -lstdc++
+// 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=1, argv=.*)'
+
 
 #include <stdlib.h>
 






More information about the llvm-commits mailing list