Skip to content

Commit 3a768c2

Browse files
committed
coredump test
1 parent 8ef8471 commit 3a768c2

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.github/actions/env_setup/action.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ runs:
1818
- name: test access to core dump directory
1919
shell: bash
2020
run: |
21-
sudo touch /var/cores/test
21+
touch /var/cores/test
2222
ls /var/cores
23-
sudo rm /var/cores/test
23+
rm /var/cores/test
2424
2525
- name: test enabling cores
2626
shell: bash
@@ -33,3 +33,10 @@ runs:
3333
shell: bash
3434
run: |
3535
echo "ASAN_OPTIONS: $ASAN_OPTIONS"
36+
37+
- name: core dump check
38+
shell: bash
39+
run: |
40+
echo "int main() {return *(int*)0;}" > coredump.c
41+
gcc coredump.c && ./a.out
42+

.github/workflows/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ jobs:
8181
with:
8282
name: crashes
8383
path: /var/cores
84+
if-no-files-found: ignore
8485

8586

8687
build-c3fmt:
@@ -201,3 +202,4 @@ jobs:
201202
with:
202203
name: crashes
203204
path: /var/cores
205+
if-no-files-found: ignore

0 commit comments

Comments
 (0)