From ebeea3fa9992d5ceb71806b24ae94c8601638717 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 27 May 2019 22:43:59 +0300 Subject: Add backtrace() --- tests/backtrace/testscript | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 tests/backtrace/testscript (limited to 'tests/backtrace/testscript') 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 +} -- cgit v1.1