Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/runtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ jobs:
echo "test/Libs/LIBLITERALPREFIX.py" >> .excludes
echo "test/Rpcgen/live.py" >> .excludes
echo "test/builderrors.py" >> .excludes
echo "test/ninja/ninja_handle_control_c_rebuild.py" >> .excludes
echo "test/ninja/shutdown_scons_daemon.py" >> .excludes
echo "test/scons-time/run/option/verbose.py" >> .excludes
elif [[ "${{matrix.os}}" == "windows"* ]]; then
Expand Down
1 change: 1 addition & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ RELEASE VERSION/DATE TO BE FILLED IN LATER
outright.

From Mats Wichmann:
- Fix the ninja ctrl-c test, which was failing on some platforms.
- Reference manual improvements:
* Additional clarification for SideEffect()

Expand Down
2 changes: 2 additions & 0 deletions RELEASE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ FIXES
the SCons documentation build and the docbook tool, which failed on any
DocBook source pulling in an external entity module.

- Fix the ninja ctrl-c test, which was failing on some platforms.

IMPROVEMENTS
------------

Expand Down
9 changes: 9 additions & 0 deletions test/ninja/ninja_test_sconscripts/sconstruct_control_c_ninja
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,13 @@ env.Tool('ninja')
env.Program(target='foo', source='foo.c')

if ARGUMENTS.get('NINJA_DISABLE_AUTO_RUN', 0):
# Simulate a terminal Ctrl-C. We have to send two signals: from a terminal,
# SIGINT is delivered to the whole foreground process group, including
# both ninja and the subprocess scons busy regenerating build.ninja,
# however ninja intentionally does not deliver the signal to its children,
# so just sending a kill to ninja is not a sufficient to simulate.
# This test failed on some platforms because scons continued running,
# finished writing the new build.ninja, which thus had a new mtime,
# so ninja's shutdown processing would delete it because it's modified.
os.kill(os.getppid(), signal.SIGINT)
os.kill(os.getpid(), signal.SIGINT)
Loading