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

win32 stat semantic since perl 5.33.5 #10

Open
jddurand opened this issue Nov 17, 2022 · 0 comments
Open

win32 stat semantic since perl 5.33.5 #10

jddurand opened this issue Nov 17, 2022 · 0 comments

Comments

@jddurand
Copy link

Hello,

As per Perl/perl5@e935ef3 stat semantic changed in perl, meaning briefly that now everything comes from a BY_HANDLE_FILE_INFORMATION and that ino can be on 64 bits.

Test t\07_file.t is where it shows, e.g. using perl-5.37.5 :

C:\Users\jddfr\git\perlbuildwindows-build\.cpan\build\Win32-Unicode-0.38-2>perl -I blib\lib -I blib\arch t\07_file.t
# Subtest: file_type
    ok 1 - t/07_files is dir
    ok 2 - t/07_files/file.txt is file
    ok 3 - t/07_files/dir is dir
    ok 4 - t/07_files exists
    ok 5 - t/07_files/file.txt exists
    ok 6 - t/07_files/dir exists
    # Subtest: hidden
        ok 1 - hidden file
        ok 2 - hidden dir
        1..2
    ok 7 - hidden
    # Subtest: readonly
        ok 1 - read only file
        ok 2 - read only dir
        1..2
    ok 8 - readonly
    ok 9
    ok 10
    ok 11
    ok 12
    1..12
ok 1 - file_type
# Subtest: simple
    ok 1
    ok 2
    ok 3
    ok 4
    ok 5
    ok 6
    1..6
ok 2 - simple
# Subtest: $_
    ok 1
    ok 2
    1..2
ok 3 - $_
# Subtest: stat
    # Subtest: filename
        not ok 1 - dev
        #   Failed test 'dev'
        #   at t\07_file.t line 87.
        #          got: '2'
        #     expected: '2095542223'
        not ok 2 - ino
        #   Failed test 'ino'
        #   at t\07_file.t line 90.
        #          got: '0'
        #     expected: '3096224744543610'
        ok 3 - mode
        ok 4 - nlink
        ok 5 - uid
        ok 6 - gid
        not ok 7 - rdev
        #   Failed test 'rdev'
        #   at t\07_file.t line 96.
        #          got: '2'
        #     expected: '0'
        ok 8 - size
        ok 9 - atime
        ok 10 - mtime
        ok 11 - ctime
        ok 12 - blksize
        ok 13 - blocks
        not ok 14 - dev
        #   Failed test 'dev'
        #   at t\07_file.t line 106.
        #          got: '2'
        #     expected: '2095542223'
        not ok 15 - ino
        #   Failed test 'ino'
        #   at t\07_file.t line 109.
        #          got: '0'
        #     expected: '3096224744543610'
        ok 16 - mode
        ok 17 - nlink
        ok 18 - uid
        ok 19 - gid
        not ok 20 - rdev
        #   Failed test 'rdev'
        #   at t\07_file.t line 115.
        #          got: '2'
        #     expected: '0'
        ok 21 - size
        ok 22 - atime
        ok 23 - mtime
        ok 24 - ctime
        ok 25 - blksize
        ok 26 - blocks
        1..26
        # Looks like you failed 6 tests of 26.
    not ok 1 - filename
    #   Failed test 'filename'
    #   at t\07_file.t line 124.
    # Subtest: filehandle
        not ok 1 - dev
        #   Failed test 'dev'
        #   at t\07_file.t line 87.
        #          got: '2'
        #     expected: '2095542223'
        not ok 2 - ino
        #   Failed test 'ino'
        #   at t\07_file.t line 90.
        #          got: '0'
        #     expected: '3096224744543610'
        ok 3 - mode
        ok 4 - nlink
        ok 5 - uid
        ok 6 - gid
        not ok 7 - rdev
        #   Failed test 'rdev'
        #   at t\07_file.t line 96.
        #          got: '2'
        #     expected: '0'
        ok 8 - size
        ok 9 - atime
        ok 10 - mtime
        ok 11 - ctime
        ok 12 - blksize
        ok 13 - blocks
        not ok 14 - dev
        #   Failed test 'dev'
        #   at t\07_file.t line 106.
        #          got: '2'
        #     expected: '2095542223'
        not ok 15 - ino
        #   Failed test 'ino'
        #   at t\07_file.t line 109.
        #          got: '0'
        #     expected: '3096224744543610'
        ok 16 - mode
        ok 17 - nlink
        ok 18 - uid
        ok 19 - gid
        not ok 20 - rdev
        #   Failed test 'rdev'
        #   at t\07_file.t line 115.
        #          got: '2'
        #     expected: '0'
        ok 21 - size
        ok 22 - atime
        ok 23 - mtime
        ok 24 - ctime
        ok 25 - blksize
        ok 26 - blocks
        1..26
        # Looks like you failed 6 tests of 26.
    not ok 2 - filehandle
    #   Failed test 'filehandle'
    #   at t\07_file.t line 124.
    1..2
    # Looks like you failed 2 tests of 2.
not ok 4 - stat
#   Failed test 'stat'
#   at t\07_file.t line 128.
# Subtest: stat on dir
    # Subtest: dirname
        not ok 1 - dev
        #   Failed test 'dev'
        #   at t\07_file.t line 142.
        #          got: '2'
        #     expected: '2095542223'
        not ok 2 - ino
        #   Failed test 'ino'
        #   at t\07_file.t line 145.
        #          got: '0'
        #     expected: '3377699721254267'
        ok 3 - mode
        ok 4 - nlink
        ok 5 - uid
        ok 6 - gid
        not ok 7 - rdev
        #   Failed test 'rdev'
        #   at t\07_file.t line 151.
        #          got: '2'
        #     expected: '0'
        ok 8 - size
        ok 9 - atime
        ok 10 - mtime
        ok 11 - ctime
        ok 12 - blksize
        ok 13 - blocks
        not ok 14 - dev
        #   Failed test 'dev'
        #   at t\07_file.t line 161.
        #          got: '2'
        #     expected: '2095542223'
        not ok 15 - ino
        #   Failed test 'ino'
        #   at t\07_file.t line 164.
        #          got: '0'
        #     expected: '3377699721254267'
        ok 16 - mode
        ok 17 - nlink
        ok 18 - uid
        ok 19 - gid
        not ok 20 - rdev
        #   Failed test 'rdev'
        #   at t\07_file.t line 170.
        #          got: '2'
        #     expected: '0'
        ok 21 - size
        ok 22 - atime
        ok 23 - mtime
        ok 24 - ctime
        ok 25 - blksize
        ok 26 - blocks
        1..26
        # Looks like you failed 6 tests of 26.
    not ok 1 - dirname
    #   Failed test 'dirname'
    #   at t\07_file.t line 179.
    # Subtest: dirhandle
        not ok 1 - dev
        #   Failed test 'dev'
        #   at t\07_file.t line 142.
        #          got: '2'
        #     expected: '2095542223'
        not ok 2 - ino
        #   Failed test 'ino'
        #   at t\07_file.t line 145.
        #          got: '0'
        #     expected: '3377699721254267'
        ok 3 - mode
        ok 4 - nlink
        ok 5 - uid
        ok 6 - gid
        not ok 7 - rdev
        #   Failed test 'rdev'
        #   at t\07_file.t line 151.
        #          got: '2'
        #     expected: '0'
        ok 8 - size
        ok 9 - atime
        ok 10 - mtime
        ok 11 - ctime
        ok 12 - blksize
        ok 13 - blocks
        not ok 14 - dev
        #   Failed test 'dev'
        #   at t\07_file.t line 161.
        #          got: '2'
        #     expected: '2095542223'
        not ok 15 - ino
        #   Failed test 'ino'
        #   at t\07_file.t line 164.
        #          got: '0'
        #     expected: '3377699721254267'
        ok 16 - mode
        ok 17 - nlink
        ok 18 - uid
        ok 19 - gid
        not ok 20 - rdev
        #   Failed test 'rdev'
        #   at t\07_file.t line 170.
        #          got: '2'
        #     expected: '0'
        ok 21 - size
        ok 22 - atime
        ok 23 - mtime
        ok 24 - ctime
        ok 25 - blksize
        ok 26 - blocks
        1..26
        # Looks like you failed 6 tests of 26.
    not ok 2 - dirhandle
    #   Failed test 'dirhandle'
    #   at t\07_file.t line 179.
    1..2
    # Looks like you failed 2 tests of 2.
not ok 5 - stat on dir
#   Failed test 'stat on dir'
#   at t\07_file.t line 183.
# Subtest: utime
    ok 1 - utime ok
    ok 2 - atime ok
    ok 3 - atime ok
    1..3
ok 6 - utime
# Subtest: utime on file handle
    ok 1 - utime ok
    ok 2 - atime ok
    ok 3 - atime ok
    1..3
ok 7 - utime on file handle
# Subtest: exeption
    ok 1
    ok 2
    ok 3
    ok 4
    ok 5
    ok 6
    ok 7
    ok 8
    1..8
ok 8 - exeption
1..8
# Looks like you failed 2 tests of 8.
jddurand added a commit to jddurand/p5-win32-unicode that referenced this issue Nov 17, 2022
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