Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chpock committed May 30, 2024
1 parent b93f935 commit 721f9fa
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 4 deletions.
35 changes: 32 additions & 3 deletions .github/workflows/memleaks.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Memory leak check
name: Memory leak checker
on: [push]
permissions:
contents: read
Expand All @@ -20,7 +20,7 @@ jobs:
- name: Configure Tcl
working-directory: tcl/unix
run: |
./configure --enable-symbols=all --prefix $HOME/tcl_install || {
./configure --enable-symbols=all --prefix=$HOME/tcl_install || {
cat config.log
echo "::error::Failure during Configure Tcl"
exit 1
Expand All @@ -40,13 +40,42 @@ jobs:
exit 1
}
- name: Checkout tclvfs
uses: actions/checkout@v4
with:
repository: chpock/tclvfs
ref: main
path: tclvfs
- name: Configure tclvfs
working-directory: tclvfs
run: |
./configure --enable-symbols=all --with-tcl=$HOME/tcl_install/lib --prefix=$HOME/tcl_install --exec-prefix=$HOME/tcl_install || {
cat config.log
echo "::error::Failure during Configure tclvfs"
exit 1
}
- name: Build tclvfs
working-directory: tclvfs
run: |
make -j || {
echo "::error::Failure during Build tclvfs"
exit 1
}
- name: Install tclvfs
working-directory: tclvfs
run: |
make install || {
echo "::error::Failure during Install tclvfs"
exit 1
}
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Configure
run: |
./configure --with-tcl=$HOME/tcl_install --enable-symbols=all || {
./configure --enable-symbols=all --with-tcl=$HOME/tcl_install/lib || {
cat config.log
echo "::error::Failure during Configure"
exit 1
Expand Down
6 changes: 5 additions & 1 deletion tests/all.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,9 @@ foreach file [lsort [::tcltest::getMatchingFiles]] {
puts stdout "\nTests ended at [eval $timeCmd]"
if { $::tcltest::numTests(Total) } { set r $::tcltest::numTests(Failed) } { set r 1 }
::tcltest::cleanupTests 1
incr r [check_memleaks]

if {[info exists ::env(MEMDEBUG)]} {
incr r [check_memleaks]
}

exit $r

0 comments on commit 721f9fa

Please sign in to comment.