Check leaked global symbols by default

This commit is contained in:
Nobuyoshi Nakada 2023-04-02 17:50:22 +09:00
parent 8968b47ba8
commit 2f1586f6f2
Notes: git 2023-04-03 01:07:44 +00:00
8 changed files with 1 additions and 12 deletions

View File

@ -54,7 +54,6 @@ task:
make_extract-extlibs_script: make extract-extlibs
make_incs_script: make incs
make_script: make
make_leaked-globals_script: make leaked-globals
make_test_script: make test
make_install_script: make install
install_gems_for_test_script: $RUBY_PREFIX/bin/gem install --no-doc timezone tzinfo

View File

@ -124,7 +124,6 @@ jobs:
- run: make incs
- run: make showflags
- run: make
- run: make leaked-globals
- run: make test
- run: make install
if: ${{ matrix.entry.check }}

View File

@ -252,7 +252,6 @@ jobs:
- run: make incs
- run: make showflags
- run: make
- run: make leaked-globals
- run: make test
- run: make install
if: ${{ matrix.entry.check }}

View File

@ -77,8 +77,6 @@ jobs:
- run: make prepare-gems
if: ${{ matrix.test_task == 'test-bundled-gems' }}
- run: make
- run: make leaked-globals
if: ${{ matrix.test_task == 'check' }}
- name: make ${{ matrix.test_task }}
run: |
make -s ${{ matrix.test_task }} ${TESTS:+TESTS=`echo "$TESTS" | sed 's| |$$/ -n!/|g;s|^|-n!/|;s|$|$$/|'`}

View File

@ -127,8 +127,6 @@ jobs:
run: |
make
- run: make leaked-globals
- name: make install
run: |
make DESTDIR=../install install-nodoc

View File

@ -101,8 +101,6 @@ jobs:
- run: $SETARCH make prepare-gems
if: ${{ matrix.test_task == 'test-bundled-gems' }}
- run: $SETARCH make
- run: $SETARCH make leaked-globals
if: ${{ matrix.test_task == 'check' }}
- name: Create dummy files in build dir
run: |
$SETARCH ./miniruby -e '(("a".."z").to_a+("A".."Z").to_a+("0".."9").to_a+%w[foo bar test zzz]).each{|basename|File.write("#{basename}.rb", "raise %(do not load #{basename}.rb)")}'

View File

@ -134,8 +134,6 @@ jobs:
- run: make prepare-gems
if: ${{ matrix.test_task == 'test-bundled-gems' }}
- run: make -j
- run: make leaked-globals
if: ${{ matrix.test_task == 'check' }}
- name: Create dummy files in build dir
run: |
./miniruby -e '(("a".."z").to_a+("A".."Z").to_a+("0".."9").to_a+%w[foo bar test zzz]).each{|basename|File.write("#{basename}.rb", "raise %(do not load #{basename}.rb)")}'

View File

@ -636,6 +636,6 @@ un-runnable:
$(ECHO) cannot make runnable, configure with --enable-load-relative.
$(Q) exit 1
# yes-test-basic: leaked-globals
yes-test-basic: $(DOT_WAIT) leaked-globals
leaked-globals: $(COMMONOBJS) prog $(tooldir)/leaked-globals PHONY
$(Q) $(XRUBY) $(tooldir)/leaked-globals NM="$(NM) -Pgp" SYMBOL_PREFIX=$(SYMBOL_PREFIX) PLATFORM=$(hdrdir)/ruby/$(PLATFORM_DIR).h $(srcdir)/configure.ac $(COMMONOBJS)