summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-04-12 10:57:04 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-04-12 11:55:10 -0700
commit23a0e2a84e6c1c9d7d861e00d5160ca09313e707 (patch)
tree0626f4bf61661d75eb39a888ef63733ab94b728d /Makefile
parent2d580364a6cfa28477d66a5197afe373ce8823aa (diff)
downloadqtlocation-mapboxgl-23a0e2a84e6c1c9d7d861e00d5160ca09313e707.tar.gz
[osx] Yet another attempt at getting crash traces
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d226f189e5..b3db95d3d8 100644
--- a/Makefile
+++ b/Makefile
@@ -33,7 +33,8 @@ $(OSX_PROJ_PATH)/xcshareddata/xcschemes/osxtest.xcscheme: platform/osx/scripts/o
test-osx: $(OSX_PROJ_PATH) $(OSX_PROJ_PATH)/xcshareddata/xcschemes/osxtest.xcscheme node_modules/express
set -o pipefail && xcodebuild -project $(OSX_PROJ_PATH) -configuration $(BUILDTYPE) -target test build | xcpretty
- build/osx-x86_64/$(BUILDTYPE)/test || ([[ $$? == 139 || $$? == 134 ]] && cat `ls -t1 ~/Library/Logs/DiagnosticReports/* | head -n1`; exit 1)
+ ulimit -c unlimited && (build/osx-x86_64/$(BUILDTYPE)/test & pid=$$! && wait $$pid \
+ || (lldb -c /cores/core.$$pid --batch --one-line 'thread backtrace all' --one-line 'quit' && exit 1))
set -o pipefail && xcodebuild -project $(OSX_PROJ_PATH) -configuration $(BUILDTYPE) -scheme osxtest test | xcpretty
#### iOS targets ##############################################################