Commit Graph

13 Commits

Author SHA1 Message Date
Alastair Houghton
9e65b84099 [Runtime][Tests] Disable Runtime/backtrace test on Android.
This should be disabled for Android.

Fixes #44446.

rdar://153615567
2025-06-18 10:03:24 +01:00
Alastair Houghton
d84c47121a [Backtracing] Disable backtracer for Runtime/backtrace test.
The Runtime/backtrace test is a test of the fatalError() backtracer,
which gets turned off when we have the new backtracer enabled.  So,
to make this test work, we need to turn off the new backtracer.

rdar://117470489
2023-11-01 13:45:17 +00:00
Eric Miotto
8b7cdfdb2e Revert "[XFAIL] Disable runtime/backtrace.swift (55490694)"
This reverts commit 91d41112ae.
2019-10-01 14:45:03 -07:00
Mishal Shah
91d41112ae [XFAIL] Disable runtime/backtrace.swift (55490694) 2019-09-26 10:45:06 -07:00
Mike Ash
7f4f5734d2 [Test] Upgrade the all backtrace tests to use not.py and %target-run.
rdar://problem/50863395
2019-05-20 13:10:26 -04:00
Mike Ash
c93c8e44a1 [Test] Fix backtrace.swift to use %target-run.
rdar://problem/50863395
2019-05-17 15:13:16 -04:00
Saleem Abdulrasool
b1deb97344 test: explicitly indicate interpreter for utils
This fixes the last couple of instances of the interpreter not being
passed to the python the scripts which makes them fail on OSes where
shebangs are not honoured (i.e. Windows)
2019-02-05 10:25:36 -08:00
Dmitri Gribenko
984210aa53 tests: replace '// RUN: rm -rf' '// RUN: mkdir' pairs with '%empty-directory(...)'
These changes were made using a script.
2017-06-04 11:08:39 -07:00
Kuba (Brecka) Mracek
fc7dbefcf8 Revert backtrace ban and start printing backtraces from the runtime again (#9528)
* Revert "[strip -ST] Disable runtime stack trace dumping on Darwin when asserts are disabled."
This reverts commit 6bc28ff1c9.
* Bring back important fixes from the revert of 6bc28ff1c9.
* Change swift::swift_reportError to only print the backtrace in assert builds (swift::warning prints backtrace always).
2017-05-12 15:46:35 -07:00
Michael Gottesman
6bc28ff1c9 [strip -ST] Disable runtime stack trace dumping on Darwin when asserts are disabled.
This commit disables runtime stack trace dumping via dladdr on Darwin when
asserts are disabled.

This stack trace dumping was added as a way to improve the ability to debug the
compiler for compiler developers. This is all well and good but having such a
feature always enabled prevents us from reducing the size of the swift standard
library by eliminating the swift nlist.

rdar://31372220
2017-05-04 16:46:26 -06:00
Rintaro Ishizaki
1bdce7ced6 [lit] Add substitutions: %utils and %line-directive
%utils => ${SWIFT_SOURCE_DIR}/utils
%line-directive => ${SWIFT_SOURCE_DIR}/utils/line-directive
2016-06-11 02:41:15 +09:00
Michael Gottesman
bc90c3b5d4 Do not run the backtrace test when running tests with optimizations enabled.
We do not emit backtraces when optimization is enabled. We could do a negative
test here but I do not think it really adds much.
2016-05-12 10:42:57 -07:00
Michael Gottesman
7523d1a60b When producing backtraces, do not use backtrace_symbol, invoke dladdr directly.
Previously, we were using backtrace_symbol and then parsing/modifying its
output. By just using dladdr directly, we have a cleaner and more robust
solution.

rdar://25064742
2016-05-11 15:40:10 -07:00