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
8 changes: 4 additions & 4 deletions Tests/TestMSanCanary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
* representation written by the out-of-line basic_string::__init stays
* poisoned and __msan_test_shadow returns >= 0; with the instrumented runtime
* it returns -1. No uninitialised value is read here, so halt_on_error is
* irrelevant. In every other build the tests are count-preserving stubs
* (same pattern as TestVulkanLavapipe.cpp).
* irrelevant. In every other build the tests explicitly skip: registration
* alone is not evidence that MemorySanitizer instrumentation was verified.
*/

#include "TestFramework.h"
Expand Down Expand Up @@ -39,7 +39,7 @@ TEST(MSanCanary_TestTranslationUnitIsInstrumented)
probe = 1;
EXPECT_EQ(__msan_test_shadow(&probe, sizeof probe), -1);
#else
EXPECT_TRUE(true);
SKIP_TEST("MemorySanitizer instrumentation is unavailable in this build");
#endif
}

Expand All @@ -57,6 +57,6 @@ TEST(MSanCanary_LibcxxStoresUpdateShadow)
EXPECT_EQ(__msan_test_shadow(onHeap.get(), sizeof(std::string)), -1);
EXPECT_EQ(__msan_test_shadow(onHeap->data(), onHeap->size()), -1);
#else
EXPECT_TRUE(true);
SKIP_TEST("MemorySanitizer instrumentation is unavailable in this build");
#endif
}
7 changes: 6 additions & 1 deletion Tools/test_source_census.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,12 @@

# ...which leaves the files whose SUBJECT is the harness. Includes alone cannot
# distinguish those, so they are named here.
HARNESS_TESTS = frozenset({"Tests/TestRunnerSemanticsReal.cpp"})
HARNESS_TESTS = frozenset({
"Tests/TestRunnerSemanticsReal.cpp",
# Verifies the sanitizer harness and instrumented C++ runtime, not a
# test-local copy of engine behavior. Non-MSan builds explicitly skip it.
"Tests/TestMSanCanary.cpp",
})

# A file with no production header still exercises production code if it drives
# a shipped executable and asserts on the result.
Expand Down
2 changes: 1 addition & 1 deletion wiki/advanced/Codebase-Statistics.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Codebase Statistics

Comprehensive metrics and analysis of the SparkEngine codebase. Updated 2026-09-06.
Comprehensive metrics and analysis of the SparkEngine codebase. Updated 2026-09-07.
This source inventory is not readiness evidence. The `stable-v1` Windows 11
x64 profile remains blocked and uncertified in `docs/site/readiness.json`.

Expand Down