Skip to content

CI: Fix hl2sdk-mock test error detection - #2558

Open
peace-maker wants to merge 5 commits into
alliedmodders:masterfrom
peace-maker:mock_test_cleanup
Open

CI: Fix hl2sdk-mock test error detection#2558
peace-maker wants to merge 5 commits into
alliedmodders:masterfrom
peace-maker:mock_test_cleanup

Conversation

@peace-maker

@peace-maker peace-maker commented Sep 2, 2026

Copy link
Copy Markdown
Member

Some tests silently did not run at all. When SourceMod wouldn't even load the tests were still green since there was no "FAIL" in the output 😄

Lets run the tests on x86 as well as x86_64 to see if there are differences in the 64bit support.

Fixes #2480

The test_format script requires it.
%T expects a client index and translation phrase as arguments, the test was passing a language id and a phrase.
It never ran due to sdktools missing on the mock srcds before.
When sourcemod wouldn't even load the tests were still green since there was no "FAIL" in the output :D
Use `ParamToArrayPtr()` for direct-array native parameters so nested flat arrays are not misinterpreted as `SpArray` objects.
@peace-maker

Copy link
Copy Markdown
Member Author

@dvander please have a look at 661634f which fixed a crash in the SortStrings native with the array handling.

@peace-maker

Copy link
Copy Markdown
Member Author

The SP crash was fixed in #2567 as well which was merged earlier. So this is good to notice further problems directly.

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.

[Bug]: sdktools extension was not compiled in the mock test

1 participant