Re: [PATCH RFC 2/4] pipesz: add tests

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Nathan,

at least 2 of those tests is not BE (big-endian) friendly:

mator@gcc203:~/util-linux.git/tests$ ./run.sh misc/pipesz

-------------------- util-linux regression tests --------------------

                    For development purpose only.
                 Don't execute on production system!

       kernel: 5.15.0-2-powerpc64

      options: --srcdir=/home/mator/util-linux.git/tests/.. \
               --builddir=/home/mator/util-linux.git/tests/..

         misc: pipesz                         ...
                : set-fd-bad                  ... OK
                : set-fd                      ... OK
                : set-file-bad                ... OK
                : set-file                    ... OK
                : get-fd-bad                  ... OK
                : get-fd                      ... FAILED (misc/pipesz-get-fd)
                : get-file-bad                ... OK
                : get-file                    ... FAILED (misc/pipesz-get-file)
                : pipe-max-size               ... OK
                : exec                        ... OK
           ... FAILED (2 from 10 sub-tests)

---------------------------------------------------------------------
  1 tests of 1 FAILED

      misc/pipesz
---------------------------------------------------------------------

running on a sparc64 (gcc202) and on powerpc64 (gcc203) machines :

gcc202:~/util-linux$ echo -n | ./pipesz --check --get --stdin
fd 0    131072  0

gcc203:~/util-linux.git$ echo -n | ./pipesz --check --get --stdin
fd 0    1048576 0


So on x86_64 tests expect stdin file to be 64Kb:
gcc202:~/util-linux$ cat tests/expected/misc/pipesz-get-file
/dev/stdin      65536   0
but on sparc64 it is 128Kb and on powerpc64 it is 1Mb...



[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux