diff options
| author | Paul Buetow <paul@buetow.org> | 2026-02-21 20:39:06 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-02-21 20:39:06 +0200 |
| commit | 1a121009a7d3927c688fe7dac82cac45b043965d (patch) | |
| tree | 48e6c1904f7a04db8e41565a3ea687742ea4d74e /integrationtests/open_test.go | |
| parent | 6e12cd09899cf8f3d3cd10abf3e8ea15acf1f8e0 (diff) | |
Fix integration test expectations to test actual syscall outcomes (task 349)
- rename_test.go: Fix PathContains to use destination names (newname.txt,
renameat-new.txt, renameat2-new.txt) since name_events use Newname as
the path in ior output, not the source name
- open_test.go: Change expected tracepoint from enter_openat to enter_creat
- scenarios.go: Use raw SYS_CREAT instead of Go's syscall.Creat which
wraps openat on amd64, so the creat tracepoint is actually exercised
- Created task 350 for close_range path resolution bug found during review
Amp-Thread-ID: https://ampcode.com/threads/T-019c8178-1c1f-7509-9ac9-bd48b970945b
Co-authored-by: Amp <amp@ampcode.com>
Diffstat (limited to 'integrationtests/open_test.go')
| -rw-r--r-- | integrationtests/open_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/integrationtests/open_test.go b/integrationtests/open_test.go index 3f07ae3..917ce79 100644 --- a/integrationtests/open_test.go +++ b/integrationtests/open_test.go @@ -17,7 +17,7 @@ func TestOpenCreat(t *testing.T) { runScenario(t, "open-creat", []ExpectedEvent{ { PathContains: "creatfile.txt", - Tracepoint: "enter_openat", + Tracepoint: "enter_creat", Comm: "ioworkload", MinCount: 1, }, |
