mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-15 21:03:41 +00:00
ci: resolve Linux native crash address in covered test binary
This commit is contained in:
1 parent
7e07ea31cc
commit
b33c00d90d
1 file changed
+6
@@ -96,6 +96,12 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
sudo apt-get update -y
|
sudo apt-get update -y
|
||||||
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev xvfb
|
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev xvfb
|
||||||
|
- name: Resolve native crash address
|
||||||
|
if: runner.os == 'Linux'
|
||||||
|
run: |
|
||||||
|
PACKAGES=$(go list ./... | awk '!/\/bind\// && (!/\/cmd\// || /\/cmd\/web$/)')
|
||||||
|
go test -c -tags webview -coverpkg=$(echo "$PACKAGES" | paste -sd "," -) -covermode=count -o "$RUNNER_TEMP/goprovider.test" ./internal/webview/goprovider
|
||||||
|
addr2line -a -f -C -e "$RUNNER_TEMP/goprovider.test" 0xaaddaf
|
||||||
- name: Test webview
|
- name: Test webview
|
||||||
if: runner.os == 'Linux'
|
if: runner.os == 'Linux'
|
||||||
# Repeat on the same GTK event loop to catch callbacks after destruction.
|
# Repeat on the same GTK event loop to catch callbacks after destruction.
|
||||||
|
|||||||
Reference in new issue
Block a user