summaryrefslogtreecommitdiff
path: root/systemfeatures/system_features_test.go
AgeCommit message (Collapse)Author
2025-02-12Don't panic in ModuleForTests and friends Colin Cross
Panicking in ModuleForTests and similar test helper functions was a mistake. Go's test runner stops running tests as soon as any test panics, which means debugging multiple tests panicking requires rerunning all the tests after fixing each panic to find the next one. Pass the *testing.T into ModuleForTests and friends so that it can call t.Fatalf instead. Test: all soong tests pass Change-Id: I5d0f2424eaf04fb795079e6d1e4b9469d8c7033c
2024-11-19Introduce a java_system_features_srcs wrapper for codegen Jared Duke
Use soong to aggregate all system feature-related build flags as input to the existing system feature codegen tool. Use this instead of the more clumsy raw genrule variant. This is an effective no-op in terms of generated code or framework impact, but should improve maintainability. Test: m --no-skip-soong-tests Bug: 203143243 Change-Id: I67158dd6f0454556f8d75685cfc86a68b3e47089