aboutsummaryrefslogtreecommitdiff
path: root/tests/backtrace/testscript
diff options
context:
space:
mode:
Diffstat (limited to 'tests/backtrace/testscript')
-rw-r--r--tests/backtrace/testscript20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/backtrace/testscript b/tests/backtrace/testscript
new file mode 100644
index 0000000..bdcd147
--- /dev/null
+++ b/tests/backtrace/testscript
@@ -0,0 +1,20 @@
+# file : tests/backtrace/testscript
+# copyright : Copyright (c) 2014-2019 Code Synthesis Ltd
+# license : MIT; see accompanying LICENSE file
+
+tclass = $cxx.target.class
+tsys = $cxx.target.system
+
+: basic
+:
+if ($tclass == 'linux' || $tclass == 'macos' || $tsys == 'freebsd')
+{
+ # The stack frame line format varies among OSes. The only common thing is
+ # the '0x' function address prefix.
+ #
+ $* 2>>~%EOE%
+ %.*
+ %.*0x.*%
+ %.*
+ EOE
+}