Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test crash
Browse files Browse the repository at this point in the history
Change-Id: Ia15e1dca7eb49dd9de606be81ddeae12aeddfc98
ABBAPOH committed Aug 10, 2024
1 parent 5fe5c5f commit 447d419
Showing 5 changed files with 939 additions and 906 deletions.
1,820 changes: 914 additions & 906 deletions .github/workflows/main.yml

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -14,9 +14,14 @@ x-default-service: &linux
volumes:
- .:/qbs
- ~/.ccache:/home/devel/.ccache
- /cores:/cores
network_mode: bridge
cap_add:
- SYS_PTRACE
ulimits:
core:
soft: -1
hard: -1

services:
jammy-qt6: &jammy-qt6
10 changes: 10 additions & 0 deletions scripts/crash.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#include <cstdlib>

void foo() {
std::abort();
}

int main() {
foo();
return 0;
}
5 changes: 5 additions & 0 deletions scripts/crash.qbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
CppApplication {
files: "crash.cpp"
consoleApplication: true
install: true
}
5 changes: 5 additions & 0 deletions scripts/test_crash.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

SCRIPT_DIR=$(dirname "$0")

qbs run -f ${SCRIPT_DIR}/crash.qbs

0 comments on commit 447d419

Please sign in to comment.