Skip to content

Commit 937a26e

Browse files
committed
Bash scripting is the worst.
1 parent f142568 commit 937a26e

2 files changed

Lines changed: 3 additions & 22 deletions

File tree

.github/workflows/ccpp.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,9 @@ jobs:
159159

160160
- name: Ensure expected atexit registrations
161161
shell: bash
162-
run: $GITHUB_WORKSPACE/Scripts/CountInstancesOfAtExit.py ${{runner.workspace}}/build/Bin/FEX "__cxa_atexit@plt>$" 1 ; echo $?
162+
run: |
163+
COUNT=$(llvm-objdump -D build/Bin/FEX | grep '__cxa_atexit@plt>\\$' | wc -l)
164+
[ "$COUNT" -eq 1 ] || { echo "Expected 1 atexit handlers, found $COUNT"; exit 1; }
163165
164166
- name: Remove old SHM regions
165167
if: ${{ always() }}

Scripts/CountInstancesOfAtExit.py

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)