We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f4eb879 commit 7ce6ddaCopy full SHA for 7ce6dda
.github/workflows/ccpp.yml
@@ -236,7 +236,12 @@ jobs:
236
- name: Ensure expected atexit registrations
237
working-directory: ${{runner.workspace}}/build
238
shell: bash
239
- run: $GITHUB_WORKSPACE/Scripts/CountInstancesOfAtExit.py ${{runner.workspace}}/build/Bin/FEX "__cxa_atexit@plt>$" 1 ; echo $?
+ run: |
240
+ COUNT = `llvm-objdump -D ${{runner.workspace}}/build/Bin/FEX | grep "__cxa_atexit@plt>$" | wc -l`
241
+ if [ $COUNT -eq 1 ]
242
+ echo "Expected 1 atexit handlers, found $COUNT"
243
+ exit 1
244
+ fi
245
246
- name: Truncate test results
247
if: ${{ always() }}
Scripts/CountInstancesOfAtExit.py
0 commit comments