Skip to content

Commit

Permalink
WIP. test coredump
Browse files Browse the repository at this point in the history
Change-Id: I366aee3645140c01ab9aaadaa8c194c2cecbdc66
  • Loading branch information
ABBAPOH committed Jan 10, 2024
1 parent 167799f commit 4bcfdd8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -734,9 +734,9 @@ jobs:
if: matrix.config.xcodeVersion == ''
- name: Run Tests
run: |
sudo chmod g+w /cores
ulimit -c unlimited
${{ matrix.config.script }} ./release/install-root/usr/local/bin
sudo chmod -R +rwx /cores/*
- name: Coredump on failure
if: ${{ failure() }}
run: |
Expand Down
2 changes: 1 addition & 1 deletion scripts/test-qbs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ export PATH="$1:$PATH"

export QBS_AUTOTEST_PROFILE=${QBS_AUTOTEST_PROFILE:-qt}
echo "Running Qbs tests."
find $1 -name "tst*" | xargs -I{} -n1 bash -c "{}"
find $1 -name "tst*" | grep providers | xargs -I{} -n1 bash -c "{}"
5 changes: 5 additions & 0 deletions tests/auto/blackbox/tst_blackboxproviders.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -402,4 +402,9 @@ void TestBlackboxProviders::removalVersion()
"Property 'deprecated' was scheduled for removal in version 2.2.0, but is still present"));
}

void TestBlackboxProviders::crash()
{
abort();
}

QTEST_MAIN(TestBlackboxProviders)
1 change: 1 addition & 0 deletions tests/auto/blackbox/tst_blackboxproviders.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ private slots:
void qbsModuleProvidersCompatibility_data();
void qbspkgconfigModuleProvider();
void removalVersion();
void crash();
};

#endif // TST_BLACKBOXPROVIDERS_H

0 comments on commit 4bcfdd8

Please sign in to comment.