Skip to content

test: test_vcore_fs_open and test_vcore_video_acquire build again with env_on - #2380

Merged
hckrman101 merged 1 commit into
NotRexed:mainfrom
mooki000:test/vcore-video-acquire-env-on
Nov 11, 2026
Merged

hckrman101 merged 1 commit into
NotRexed:mainfrom
mooki000:test/vcore-video-acquire-env-on

Conversation

@mooki000

Copy link
Copy Markdown
Contributor

What this is for: main's game-free checks pass again. Since #2042 met #2301 and #2322 on main today, tests/test_vcore_fs_open.py and tests/test_vcore_video_acquire.py no longer compile, so tests/run_all.py fails on main (#1929). What is measured: the two tests with g++ and clang++ on this branch and on main without it, each test against the source from before the fix it guards, and the whole of tests/run_all.py on Arch Linux. Not measured: the Windows runners (llvm-mingw clang++, MSVC).

Problem

/tmp/vcore-video-.../fixture.cpp:159:28: error: use of undeclared identifier 'env_on'
/tmp/vcore-fs-open-.../fixture.cpp:77:24: error: use of undeclared identifier 'env_on'

(g++: error: 'env_on' was not declared in this scope, at the same lines.)

What changed

  • tests/test_vcore_fs_open.py, tests/test_vcore_video_acquire.py: ENV_ON_H and "-include", ENV_ON_H in the compile command. These are the same two lines fix: switches that behave as players expect, and dead ones removed #2042 added to the other tests that cut code out of the sources (tests/test_multiwait_wake.py, tests/test_guest_copies.py and others). Nothing else changed, and no source file.

How it was tested

Arch Linux, kernel 7.2.15, g++ 16.2.1, clang++ 23.1.3, 2026-11-11. Branch head f7fb1d3 on main b744b1e.

Not tested

Risks

  • Tests only. No source file and no build changes.

Fixes #2379.

Assisted-by: Claude Opus 5.5
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com

…h env_on

NotRexed#2042 changed the switch reads in OpenFile (HOS_NO_MOVIES, through fs_trace)
and in dec_acquire (HOS_VIDEO_NO_CATCHUP) from getenv() to env_on(). NotRexed#2301
and NotRexed#2322 added tests that cut those two functions out of host/nn_fs.c and
host/nn_video.c. Each pull request was checked on its own base; on main the
cut-out code calls env_on, which neither test's fixture had, and both tests
stopped compiling (g++ and clang++). Each fixture now gets
gpu/vk/compat/hookshot_env.h with -include, as NotRexed#2042 did for the other tests
that cut code out of the sources.

Assisted-by: Claude Opus 5.5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Arkex-ai

Copy link
Copy Markdown
Contributor

Tested f7fb1d3a on Windows with llvm-mingw Clang: both fixtures compile and pass. Both also still reject their pre-fix production source (nn_fs.c at b75f2c1b, nn_video.c at aab7daf2) after compiling successfully, so the causal checks remain effective.

I reproduced the missing-env_on errors on clean main too. This covers the gap I was investigating; I'll leave the fix here rather than open another PR. MSVC and game/runtime behavior were not tested.

@mooki000

Copy link
Copy Markdown
Contributor Author

Thanks @Arkex-ai, that is the Windows run I couldn't do here. MSVC is still untested, as you say.

@ghost ghost left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. #2301 and #2322 are both merged, and main (b744b1e) still has neither -include in these two tests, so the fix is needed on main as it stands.

The diff is just the ENV_ON_H constant and -include ENV_ON_H in the compile line of both tests, the same as #2042 gave the other tests that cut code out of the sources. Path is already imported before the constant. Nothing is weakened: no assertions, fixtures or sources changed, and Arkex-ai's Windows llvm-mingw run (plus the author's causal checks against the pre-fix sources) shows both tests still reject the old code. MSVC remains untested, as noted.

CI: the appimage failure is the runner not resolving archive.ubuntu.com (apt), unrelated to this change. The rest was still pending when I looked.

@hckrman101
hckrman101 merged commit 9796361 into NotRexed:main Nov 11, 2026
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

main: test_vcore_fs_open and test_vcore_video_acquire no longer compile since #2042 met #2301 and #2322

2 participants