Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkg/uefi/meregion: add TestFindFPTSignature test case #444

Closed
wants to merge 1 commit into from

Conversation

orangecms
Copy link
Collaborator

I have no idea what Go is trying to tell me:

--- FAIL: TestFindFPTSignature (0.00s)
    --- FAIL: TestFindFPTSignature/beginning (0.00s)
panic: runtime error: slice bounds out of range [:20] with capacity 16 [recovered]
        panic: runtime error: slice bounds out of range [:20] with capacity 16

goroutine 4010 [running]:
testing.tRunner.func1.2({0x5af120, 0xc00001cc90})
        /home/dama/bin/go1.21.0/src/testing/testing.go:1545 +0x238
testing.tRunner.func1()
        /home/dama/bin/go1.21.0/src/testing/testing.go:1548 +0x397
panic({0x5af120?, 0xc00001cc90?})
        /home/dama/bin/go1.21.0/src/runtime/panic.go:914 +0x21f
github.com/linuxboot/fiano/pkg/uefi.FindMEDescriptor({0xc000f09e00, 0x5ac?, 0x10})
        /home/dama/Projects/Fiedka/fiano/pkg/uefi/meregion.go:106 +0x125
github.com/linuxboot/fiano/pkg/uefi.TestFindFPTSignature.func1(0xc000bd3860)
        /home/dama/Projects/Fiedka/fiano/pkg/uefi/meregion_test.go:84 +0x34
testing.tRunner(0xc000bd3860, 0xc00002b160)
        /home/dama/bin/go1.21.0/src/testing/testing.go:1595 +0xff
created by testing.(*T).Run in goroutine 4009
        /home/dama/bin/go1.21.0/src/testing/testing.go:1648 +0x3ad
FAIL    github.com/linuxboot/fiano/pkg/uefi     0.284s
FAIL

@orangecms orangecms added the help wanted Extra attention is needed label Sep 29, 2024
@orangecms
Copy link
Collaborator Author

sigh I got it... there is this at the end of the row hex.Dump(buf[:20]) - it is so long though that I hadn't seen it

@orangecms orangecms closed this Sep 29, 2024
@orangecms orangecms deleted the me-fpt-test branch September 29, 2024 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant