diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2026-01-19 15:54:08 +0100 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2026-01-20 08:35:12 +0000 |
| commit | 75769ae79e1f7c200dfc52bd7711b2b43f88f28c (patch) | |
| tree | 081441d182ac0e3d05fcdfd9d7bbbc56b6188bc5 /pkg/subsystem/linux/parents_test.go | |
| parent | faf99a10ff35487a689ef7a183b1081da5369152 (diff) | |
pkg/subsystem: export debug info
Make it possible to print more debugging information when (re)generating
a subsystem list.
Include parent inference details to the source code itself and add a
-debug flag to list the source files assigned to each subsystem.
Diffstat (limited to 'pkg/subsystem/linux/parents_test.go')
| -rw-r--r-- | pkg/subsystem/linux/parents_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/subsystem/linux/parents_test.go b/pkg/subsystem/linux/parents_test.go index 444e4ff33..0881daeae 100644 --- a/pkg/subsystem/linux/parents_test.go +++ b/pkg/subsystem/linux/parents_test.go @@ -113,13 +113,13 @@ func TestSetParents(t *testing.T) { "drivers/android/binder.c": {}, } - matrix, err := BuildCoincidenceMatrix(tree, + matrix, _, err := BuildCoincidenceMatrix(tree, []*subsystem.Subsystem{kernel, net, wireless, drivers}, nil) assert.NoError(t, err) // Calculate parents. - err = setParents(matrix, []*subsystem.Subsystem{kernel, net, wireless, drivers}) + _, err = setParents(matrix, []*subsystem.Subsystem{kernel, net, wireless, drivers}) if err != nil { t.Fatal(err) } |
