[all-commits] [llvm/llvm-project] 70e189: [libc] fixup ftello test (#87282)

Nick Desaulniers via All-commits all-commits at lists.llvm.org
Mon Apr 1 14:15:02 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 70e189fbc96909d3841dd2bca4a2909345cd826f
      https://github.com/llvm/llvm-project/commit/70e189fbc96909d3841dd2bca4a2909345cd826f
  Author: Nick Desaulniers <nickdesaulniers at users.noreply.github.com>
  Date:   2024-04-01 (Mon, 01 Apr 2024)

  Changed paths:
    M libc/test/src/stdio/ftell_test.cpp

  Log Message:
  -----------
  [libc] fixup ftello test (#87282)

Use a seek offset that fits within the file size.

This was missed in presubmit because the FILE based stdio tests aren't
run in
overlay mode; fullbuild is not tested in presubmit.

WRITE_SIZE == 11, so using a value of 42 for offseto would cause the
expression
`WRITE_SIZE - offseto` to evaluate to -31 as an unsigned 64b integer
(18446744073709551585ULL).

Fixes #86928



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list