Skip to content

Commit

Permalink
Enable assertions during tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Aug 21, 2023
1 parent 4983c47 commit 484eb0f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test-external.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ permissions:

env:
CONSOLE_OUTPUT: XTerm
RUBY_DEBUG: true

jobs:
test:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ permissions:

env:
CONSOLE_OUTPUT: XTerm
RUBY_DEBUG: true

jobs:
test:
Expand Down
4 changes: 4 additions & 0 deletions ext/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@

$CFLAGS << " -Wall -Wno-unknown-pragmas -std=c99"

if ENV.key?('RUBY_DEBUG')
$CFLAGS << " -DRUBY_DEBUG -O0"
end

$srcs = ["io/event/event.c", "io/event/selector/selector.c"]
$VPATH << "$(srcdir)/io/event"
$VPATH << "$(srcdir)/io/event/selector"
Expand Down

0 comments on commit 484eb0f

Please sign in to comment.