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

odin test console logger and fmt.printf not finishing flushing #4396

Open
gco-bmx opened this issue Oct 20, 2024 · 0 comments
Open

odin test console logger and fmt.printf not finishing flushing #4396

gco-bmx opened this issue Oct 20, 2024 · 0 comments

Comments

@gco-bmx
Copy link

gco-bmx commented Oct 20, 2024

Context

running below via odin test does not output the complete string on the console.
I see the same behavior with the console logger,
when step debugging after io.flush(w) in wprintf in fmt.odin, I see the full string
using odin run full string is output running equivalent from main
same behavior in command prompt and powershell

@(test)
parser_basic :: proc(t: ^testing.T) {
  b := strings.builder_make()
  fmt.sbprintf(&b, "i:%v", 0)
  for i:=1; i < 4096*16; i+=1 {
    fmt.sbprintf(&b, ",i:%v", i)
  }
  fmt.printf("str:%v\n", transmute(string)b.buf[:])
  testing.expect(t, strings.builder_len(b)!=0, "there was an error")
}

odin test tests/ -all-packages --collection:src=src -debug

  • Operating System & Odin Version: Window 10, Odin 9f609dd

Expected Behavior

console output ends with
,i:65532,i:65533,i:65534,i:65535

Current Behavior

console output ends with
i:65505,i:65506,i:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant