From 19339c51f194e5f96eb1d203812e2e76befbb795 Mon Sep 17 00:00:00 2001 From: Koichi Sasada Date: Mon, 25 Sep 2023 17:53:05 +0900 Subject: [PATCH] WIP: disable RUBY_DEBUG_LOG --- .github/workflows/compilers.yml | 8 ++------ debug.c | 4 ++-- vm_debug.h | 2 +- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/compilers.yml b/.github/workflows/compilers.yml index ec8bf3ff9c9ab9..e5b71a074fd2b6 100644 --- a/.github/workflows/compilers.yml +++ b/.github/workflows/compilers.yml @@ -261,13 +261,9 @@ jobs: - run: make showflags - - run: make optflags=-O0 + - run: make - - run: make test BTESTS=-j1 - env: - RUBY_DEBUG_LOG: /tmp/log - RUBY_DEBUG_LOG_FILTER: pthread - RUBY_ON_BUG: 'cat /tmp/log ' + - run: make test - run: make install if: ${{ matrix.entry.check }} diff --git a/debug.c b/debug.c index efe31741588a2a..e84e3d602a3eb1 100644 --- a/debug.c +++ b/debug.c @@ -402,9 +402,9 @@ setup_debug_log(void) ruby_debug_log_mode |= ruby_debug_log_file; // pid extension with %p - int len = strlen(log_config); + unsigned long len = strlen(log_config); - for (int i=0, j=0; i