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

mem-info 0.3.0.0 test failure #15

Open
sternenseemann opened this issue Nov 7, 2024 · 2 comments · May be fixed by #16
Open

mem-info 0.3.0.0 test failure #15

sternenseemann opened this issue Nov 7, 2024 · 2 comments · May be fixed by #16
Assignees

Comments

@sternenseemann
Copy link

Test suite test: RUNNING...

module System.MemInfo.Choices
  should parse a Choices from the command line ok [✔]
    +++ OK, passed 100 tests.
module System.MemInfo.Proc
  GenValid ExeInfo
    genValid   :: Gen ExeInfo
      only generates valid 'ExeInfo's [✔]
        +++ OK, passed 100 tests.
  parseExeInfo
    should parse all valid values successfully [✔]
      +++ OK, passed 100 tests.
  parseStatusInfo
    should parse all valid values successfully [✘]
  parseFromStatm
    when using a kernel version with unknown sharing
      should parse values to ProcUsage successfully [✔]
        +++ OK, passed 100 tests.
    when using a kernel version with known sharing
      should parse values to ProcUsage successfully [✔]
        +++ OK, passed 100 tests.
    When the statm content is invalid
      should not parse values to ProcUsage successfully [✔]
        +++ OK, passed 100 tests.
  parseFromSmap
    should parse values to ProcUsage successfully [✔]
      +++ OK, passed 100 tests.
module System.MemInfo.Print
  fmtAsHeader
    when discriminating by pid
      when swap is not required
        does not show it [✔]
      when swap is required
        does show it [✔]
    when not discriminating by pid
      when swap is not required
        does not show it [✔]
      when swap is required
        does show it [✔]
  fmtOverall
    when swap is not required
      does not show it [✔]
    when swap is required
      does show it [✔]
  fmtMemUsage
    when displaying by-pid
      and swap is not required
        does not show it [✔]
      when swap is required
        shows it [✔]
    when displaying by-name
      and swap is not required
        does not show it [✔]
  styleOutput
    when accurate and swap shown
      when style is csv
        when discriminating by pid
          should generate the expected output [✔]
        not discriminating by pid
          should generate the expected output [✔]
    when accurate and no swap shown
      when style is normal
        when discriminating by pid
          should generate the expected output [✔]
        not discriminating by pid
          should generate the expected output [✔]
module System.MemInfo.SysInfo
  parseKernelVersion
    should parse values from Text successfully [✔]
      +++ OK, passed 100 tests.

Failures:

  test/MemInfo/ProcSpec.hs:51:3: 
  1) module System.MemInfo.Proc, parseStatusInfo, should parse all valid values successfully
       Falsified (after 56 tests):
         (StatusInfo {siName = "\447253\952307\937210\876387\515085\305076\373977\871965\862421\n\630364\1017042\465594\257343\483502\188827\176404\873926\461443\661240\1041131\290374\11452\496974\551206", siParent = -89048437},"Uid: 64504\nGid: 36900\nFDSize: 42920\nNgid: 9033\nThreads: 17343\nName:\n  \447253\952307\937210\876387\515085\305076\373977\871965\862421\n  \630364\1017042\465594\257343\483502\188827\176404\873926\461443\661240\1041131\290374\11452\496974\551206\nPPid: -89048437\n")

  To rerun use: --match "/module System.MemInfo.Proc/parseStatusInfo/should parse all valid values successfully/" --seed 851376301

Randomized with seed 851376301

Finished in 0.1588 seconds
22 examples, 1 failure
Test suite test: FAIL
Test suite logged to: dist/test/mem-info-0.3.0.0-test.log
0 of 1 test suites (0 of 1 test cases) passed.
@adetokunbo adetokunbo self-assigned this Nov 10, 2024
@adetokunbo adetokunbo linked a pull request Nov 11, 2024 that will close this issue
@adetokunbo
Copy link
Owner

@sternenseemann Thanks for the bug report!
I've not been able to reproduce this, but looking at the failure, the cause seemed fairly straightforward and should be resolved by #16. If possible, it'd be helpful if to update the issue with details of environment in which the test failed, i.e, GHC and Cabal versions and OS.
With that, I should be able first reproduce the failure; then confirm the fix.

@sternenseemann
Copy link
Author

GHC 9.6 / Cabal 3.10

Running phase: setupCompilerEnvironmentPhase
Build with /nix/store/2k63p7gwybp3fa1vxs8c3i0s6ijf2m4i-ghc-9.6.6.
Running phase: unpackPhase
unpacking source archive /nix/store/v2fjp3gxs03h862447byiscrw2q32i83-mem-info-0.3.0.0.tar.gz
source root is mem-info-0.3.0.0
setting SOURCE_DATE_EPOCH to timestamp 1000000000 of file mem-info-0.3.0.0/test/Spec.hs
Running phase: patchPhase
Running phase: compileBuildDriverPhase
setupCompileFlags: -package-db=/build/tmp.BZr7gnXpVY/setup-package.conf.d -threaded
[1 of 2] Compiling Main             ( Setup.hs, /build/tmp.BZr7gnXpVY/Main.o )
[2 of 2] Linking Setup
Running phase: updateAutotoolsGnuConfigScriptsPhase
Running phase: configurePhase
configureFlags: --verbose --prefix=/nix/store/zkc4hlnsa5l0vdl94pp3yfvmcpivn3ma-mem-info-0.3.0.0 --libdir=$prefix/lib/$compiler/lib --libsubdir=$abi/$libname --docdir=/nix/store/yhk094nzhj5kynhmnks8m7jw8lkj19wi-mem-info-0.3.0.0-doc/share/doc/mem-info-0.3.0.0 --with-gcc=gcc --package-db=/build/tmp.BZr7gnXpVY/package.conf.d --ghc-option=-j2 --ghc-option=+RTS --ghc-option=-A64M --ghc-option=-RTS --enable-library-profiling --profiling-detail=exported-functions --disable-profiling --enable-shared --disable-coverage --enable-static --disable-executable-dynamic --enable-tests --disable-benchmarks --enable-library-vanilla --disable-library-for-ghci --enable-split-sections --enable-library-stripping --enable-executable-stripping --ghc-option=-haddock --extra-lib-dirs=/nix/store/c7qx9iq6lqfjd4dxrdd6723l6rvzsj5s-ncurses-6.4.20221231/lib --extra-lib-dirs=/nix/store/0qiyy7llb8ldillvlvjz1pyawhs5cvpk-libffi-3.4.6/lib --extra-lib-dirs=/nix/store/p2i9dd3fslfhsc593h2xfs4s75lzbpki-elfutils-0.191/lib --extra-lib-dirs=/nix/store/avd3viplh1hsz0xcvi86wcfqxycrv2wd-gmp-with-cxx-6.3.0/lib --extra-include-dirs=/nix/store/dsgnd4bpc0c9wpqp4z966hhhqvxkii0n-double-conversion-3.3.0/include --extra-lib-dirs=/nix/store/dsgnd4bpc0c9wpqp4z966hhhqvxkii0n-double-conversion-3.3.0/lib
Using Parsec parser
Configuring mem-info-0.3.0.0...
Dependency base >=4.10 && <5: using base-4.18.2.1
Dependency bytestring >=0.10.8.2 && <0.11 || >=0.11.3.1 && <0.13: using
bytestring-0.11.5.3
Dependency containers >=0.6.5 && <0.8: using containers-0.6.7
Dependency directory >=1.3.6 && <1.5: using directory-1.3.8.5
Dependency filepath >=1.4.2 && <1.6: using filepath-1.4.300.1
Dependency fmt >=0.6.3 && <0.8: using fmt-0.6.3.0
Dependency hashable >=1.4.2 && <1.6: using hashable-1.4.4.0
Dependency optparse-applicative >=0.18.1 && <0.19: using
optparse-applicative-0.18.1.0
Dependency text >=1.2.3 && <2.2: using text-2.0.2
Dependency unix >=2.7.2 && <2.9: using unix-2.8.4.0
Dependency validity >=0.12.0 && <0.14: using validity-0.12.1.0
Dependency validity-text >=0.3.1 && <0.4.1: using validity-text-0.3.1.3
Dependency base >=4.14 && <5: using base-4.18.2.1
Dependency mem-info: using mem-info-0.3.0.0
Dependency QuickCheck: using QuickCheck-2.14.3
Dependency base: using base-4.18.2.1
Dependency fmt: using fmt-0.6.3.0
Dependency genvalidity: using genvalidity-1.1.1.0
Dependency genvalidity-hspec: using genvalidity-hspec-1.0.0.3
Dependency genvalidity-text: using genvalidity-text-1.0.0.1
Dependency hashable: using hashable-1.4.4.0
Dependency hspec: using hspec-2.11.9
Dependency mem-info: using mem-info-0.3.0.0
Dependency optparse-applicative >=0.18.1 && <0.19: using
optparse-applicative-0.18.1.0
Dependency text: using text-2.0.2
Dependency unix: using unix-2.8.4.0
Source component graph:
    component lib
    component exe:printmem dependency lib
    component test:test dependency lib
Configured component graph:
    component mem-info-0.3.0.0-AxcTBHpF6h9CxsnBUbaU9
        include base-4.18.2.1
        include bytestring-0.11.5.3
        include containers-0.6.7
        include directory-1.3.8.5
        include filepath-1.4.300.1
        include fmt-0.6.3.0-17Yr16iRLc0G4hvIuH0WLr
        include hashable-1.4.4.0-1cUwT1YA5NKDNzV11fLCsN
        include optparse-applicative-0.18.1.0-2Zd0lGmtatf3qY5KrrP5Hy
        include text-2.0.2
        include unix-2.8.4.0
        include validity-0.12.1.0-LKDdbUg2IgmJjagYg8WBbM
        include validity-text-0.3.1.3-HPqysA8aFTII9pKtm42xge
    component mem-info-0.3.0.0-2M1BPn4my4FIcd5PltB5RL-printmem
        include base-4.18.2.1
        include mem-info-0.3.0.0-AxcTBHpF6h9CxsnBUbaU9
    component mem-info-0.3.0.0-8QNxr83Q6UJFU67rbHpEAv-test
        include QuickCheck-2.14.3-2ib5howz5bF8WgkuPDgHew
        include base-4.18.2.1
        include fmt-0.6.3.0-17Yr16iRLc0G4hvIuH0WLr
        include genvalidity-1.1.1.0-2rUmIqnFSOoBp0hNYBULmv
        include genvalidity-hspec-1.0.0.3-BnwEoLPLh2jJtz4qMHw0NS
        include genvalidity-text-1.0.0.1-5FUaEUeJZSDIFhRd0kyjgL
        include hashable-1.4.4.0-1cUwT1YA5NKDNzV11fLCsN
        include hspec-2.11.9-K4kdq1ZGqnN7rZ0uL9rUZi
        include mem-info-0.3.0.0-AxcTBHpF6h9CxsnBUbaU9
        include optparse-applicative-0.18.1.0-2Zd0lGmtatf3qY5KrrP5Hy
        include text-2.0.2
        include unix-2.8.4.0
Linked component graph:
    unit mem-info-0.3.0.0-AxcTBHpF6h9CxsnBUbaU9
        include base-4.18.2.1
        include bytestring-0.11.5.3
        include containers-0.6.7
        include directory-1.3.8.5
        include filepath-1.4.300.1
        include fmt-0.6.3.0-17Yr16iRLc0G4hvIuH0WLr
        include hashable-1.4.4.0-1cUwT1YA5NKDNzV11fLCsN
        include optparse-applicative-0.18.1.0-2Zd0lGmtatf3qY5KrrP5Hy
        include text-2.0.2
        include unix-2.8.4.0
        include validity-0.12.1.0-LKDdbUg2IgmJjagYg8WBbM
        include validity-text-0.3.1.3-HPqysA8aFTII9pKtm42xge
        System.MemInfo=mem-info-0.3.0.0-AxcTBHpF6h9CxsnBUbaU9:System.MemInfo,System.MemInfo.Choices=mem-info-0.3.0.0-AxcTBHpF6h9CxsnBUbaU9:System.MemInfo.Choices,System.MemInfo.Print=mem-info-0.3.0.0-AxcTBHpF6h9CxsnBUbaU9:System.MemInfo.Print,System.MemInfo.Proc=mem-info-0.3.0.0-AxcTBHpF6h9CxsnBUbaU9:System.MemInfo.Proc,System.MemInfo.SysInfo=mem-info-0.3.0.0-AxcTBHpF6h9CxsnBUbaU9:System.MemInfo.SysInfo
    unit mem-info-0.3.0.0-2M1BPn4my4FIcd5PltB5RL-printmem
        include base-4.18.2.1
        include mem-info-0.3.0.0-AxcTBHpF6h9CxsnBUbaU9
    unit mem-info-0.3.0.0-8QNxr83Q6UJFU67rbHpEAv-test
        include QuickCheck-2.14.3-2ib5howz5bF8WgkuPDgHew
        include base-4.18.2.1
        include fmt-0.6.3.0-17Yr16iRLc0G4hvIuH0WLr
        include genvalidity-1.1.1.0-2rUmIqnFSOoBp0hNYBULmv
        include genvalidity-hspec-1.0.0.3-BnwEoLPLh2jJtz4qMHw0NS
        include genvalidity-text-1.0.0.1-5FUaEUeJZSDIFhRd0kyjgL
        include hashable-1.4.4.0-1cUwT1YA5NKDNzV11fLCsN
        include hspec-2.11.9-K4kdq1ZGqnN7rZ0uL9rUZi
        include mem-info-0.3.0.0-AxcTBHpF6h9CxsnBUbaU9
        include optparse-applicative-0.18.1.0-2Zd0lGmtatf3qY5KrrP5Hy
        include text-2.0.2
        include unix-2.8.4.0
Ready component graph:
    definite mem-info-0.3.0.0-AxcTBHpF6h9CxsnBUbaU9
        depends base-4.18.2.1
        depends bytestring-0.11.5.3
        depends containers-0.6.7
        depends directory-1.3.8.5
        depends filepath-1.4.300.1
        depends fmt-0.6.3.0-17Yr16iRLc0G4hvIuH0WLr
        depends hashable-1.4.4.0-1cUwT1YA5NKDNzV11fLCsN
        depends optparse-applicative-0.18.1.0-2Zd0lGmtatf3qY5KrrP5Hy
        depends text-2.0.2
        depends unix-2.8.4.0
        depends validity-0.12.1.0-LKDdbUg2IgmJjagYg8WBbM
        depends validity-text-0.3.1.3-HPqysA8aFTII9pKtm42xge
    definite mem-info-0.3.0.0-8QNxr83Q6UJFU67rbHpEAv-test
        depends QuickCheck-2.14.3-2ib5howz5bF8WgkuPDgHew
        depends base-4.18.2.1
        depends fmt-0.6.3.0-17Yr16iRLc0G4hvIuH0WLr
        depends genvalidity-1.1.1.0-2rUmIqnFSOoBp0hNYBULmv
        depends genvalidity-hspec-1.0.0.3-BnwEoLPLh2jJtz4qMHw0NS
        depends genvalidity-text-1.0.0.1-5FUaEUeJZSDIFhRd0kyjgL
        depends hashable-1.4.4.0-1cUwT1YA5NKDNzV11fLCsN
        depends hspec-2.11.9-K4kdq1ZGqnN7rZ0uL9rUZi
        depends mem-info-0.3.0.0-AxcTBHpF6h9CxsnBUbaU9
        depends optparse-applicative-0.18.1.0-2Zd0lGmtatf3qY5KrrP5Hy
        depends text-2.0.2
        depends unix-2.8.4.0
    definite mem-info-0.3.0.0-2M1BPn4my4FIcd5PltB5RL-printmem
        depends base-4.18.2.1
        depends mem-info-0.3.0.0-AxcTBHpF6h9CxsnBUbaU9
Using Cabal-3.10.3.0 compiled by ghc-9.6
Using compiler: ghc-9.6.6
Using install prefix:
/nix/store/zkc4hlnsa5l0vdl94pp3yfvmcpivn3ma-mem-info-0.3.0.0
Executables installed in:
/nix/store/zkc4hlnsa5l0vdl94pp3yfvmcpivn3ma-mem-info-0.3.0.0/bin
Libraries installed in:
/nix/store/zkc4hlnsa5l0vdl94pp3yfvmcpivn3ma-mem-info-0.3.0.0/lib/ghc-9.6.6/lib/x86_64-linux-ghc-9.6.6/mem-info-0.3.0.0-AxcTBHpF6h9CxsnBUbaU9
Dynamic Libraries installed in:
/nix/store/zkc4hlnsa5l0vdl94pp3yfvmcpivn3ma-mem-info-0.3.0.0/lib/ghc-9.6.6/lib/x86_64-linux-ghc-9.6.6
Private executables installed in:
/nix/store/zkc4hlnsa5l0vdl94pp3yfvmcpivn3ma-mem-info-0.3.0.0/libexec/x86_64-linux-ghc-9.6.6/mem-info-0.3.0.0
Data files installed in:
/nix/store/zkc4hlnsa5l0vdl94pp3yfvmcpivn3ma-mem-info-0.3.0.0/share/x86_64-linux-ghc-9.6.6/mem-info-0.3.0.0
Documentation installed in:
/nix/store/yhk094nzhj5kynhmnks8m7jw8lkj19wi-mem-info-0.3.0.0-doc/share/doc/mem-info-0.3.0.0
Configuration files installed in:
/nix/store/zkc4hlnsa5l0vdl94pp3yfvmcpivn3ma-mem-info-0.3.0.0/etc
No alex found
Using ar found on system at:
/nix/store/l13l2ipc1xn5npjrw511y0yfh4ghinmf-binutils-wrapper-2.43.1/bin/ar
No c2hs found
No cpphs found
No doctest found
Using gcc version 13.3.0 given by user at:
/nix/store/hgw57m0jh2w10jsv8x86ng267pm5sla8-gcc-wrapper-13.3.0/bin/gcc
Using ghc version 9.6.6 found on system at:
/nix/store/2k63p7gwybp3fa1vxs8c3i0s6ijf2m4i-ghc-9.6.6/bin/ghc
Using ghc-pkg version 9.6.6 found on system at:
/nix/store/2k63p7gwybp3fa1vxs8c3i0s6ijf2m4i-ghc-9.6.6/bin/ghc-pkg-9.6.6
No ghcjs found
No ghcjs-pkg found
No greencard found
Using haddock version 2.29.2 found on system at:
/nix/store/2k63p7gwybp3fa1vxs8c3i0s6ijf2m4i-ghc-9.6.6/bin/haddock-ghc-9.6.6
No happy found
Using haskell-suite found on system at: haskell-suite-dummy-location
Using haskell-suite-pkg found on system at: haskell-suite-pkg-dummy-location
No hmake found
Using hpc version 0.68 found on system at:
/nix/store/2k63p7gwybp3fa1vxs8c3i0s6ijf2m4i-ghc-9.6.6/bin/hpc-ghc-9.6.6
Using hsc2hs version 0.68.9 found on system at:
/nix/store/2k63p7gwybp3fa1vxs8c3i0s6ijf2m4i-ghc-9.6.6/bin/hsc2hs-ghc-9.6.6
Using hscolour version 1.25 found on system at:
/nix/store/rzli9h1fdg8wbwf8ijdb4aa5pdqdjqzq-hscolour-1.25/bin/HsColour
No jhc found
Using ld found on system at:
/nix/store/l13l2ipc1xn5npjrw511y0yfh4ghinmf-binutils-wrapper-2.43.1/bin/ld.gold
No pkg-config found
Using runghc version 9.6.6 found on system at:
/nix/store/2k63p7gwybp3fa1vxs8c3i0s6ijf2m4i-ghc-9.6.6/bin/runghc-9.6.6
Using strip version 2.43 found on system at:
/nix/store/hgw57m0jh2w10jsv8x86ng267pm5sla8-gcc-wrapper-13.3.0/bin/strip
Using tar found on system at:
/nix/store/cqyjb712c5q3axw9qjij05dnji2a7z48-gnutar-1.35/bin/tar
No uhc found
Running phase: buildPhase
Preprocessing library for mem-info-0.3.0.0..
Building library for mem-info-0.3.0.0..
[1 of 6] Compiling System.MemInfo.Prelude ( src/System/MemInfo/Prelude.hs, dist/build/System/MemInfo/Prelude.o, dist/build/System/MemInfo/Prelude.dyn_o )
[2 of 6] Compiling System.MemInfo.Choices ( src/System/MemInfo/Choices.hs, dist/build/System/MemInfo/Choices.o, dist/build/System/MemInfo/Choices.dyn_o )
[3 of 6] Compiling System.MemInfo.SysInfo ( src/System/MemInfo/SysInfo.hs, dist/build/System/MemInfo/SysInfo.o, dist/build/System/MemInfo/SysInfo.dyn_o )
[4 of 6] Compiling System.MemInfo.Proc ( src/System/MemInfo/Proc.hs, dist/build/System/MemInfo/Proc.o, dist/build/System/MemInfo/Proc.dyn_o )
[5 of 6] Compiling System.MemInfo.Print ( src/System/MemInfo/Print.hs, dist/build/System/MemInfo/Print.o, dist/build/System/MemInfo/Print.dyn_o )
[6 of 6] Compiling System.MemInfo   ( src/System/MemInfo.hs, dist/build/System/MemInfo.o, dist/build/System/MemInfo.dyn_o )
[1 of 6] Compiling System.MemInfo.Prelude ( src/System/MemInfo/Prelude.hs, dist/build/System/MemInfo/Prelude.p_o )
[2 of 6] Compiling System.MemInfo.Choices ( src/System/MemInfo/Choices.hs, dist/build/System/MemInfo/Choices.p_o )
[3 of 6] Compiling System.MemInfo.SysInfo ( src/System/MemInfo/SysInfo.hs, dist/build/System/MemInfo/SysInfo.p_o )
[4 of 6] Compiling System.MemInfo.Proc ( src/System/MemInfo/Proc.hs, dist/build/System/MemInfo/Proc.p_o )
[5 of 6] Compiling System.MemInfo.Print ( src/System/MemInfo/Print.hs, dist/build/System/MemInfo/Print.p_o )
[6 of 6] Compiling System.MemInfo   ( src/System/MemInfo.hs, dist/build/System/MemInfo.p_o )
Preprocessing test suite 'test' for mem-info-0.3.0.0..
Building test suite 'test' for mem-info-0.3.0.0..
[1 of 6] Compiling MemInfo.OrphanInstances ( test/MemInfo/OrphanInstances.hs, dist/build/test/test-tmp/MemInfo/OrphanInstances.o )
[2 of 6] Compiling MemInfo.ChoicesSpec ( test/MemInfo/ChoicesSpec.hs, dist/build/test/test-tmp/MemInfo/ChoicesSpec.o )
[3 of 6] Compiling MemInfo.PrintSpec ( test/MemInfo/PrintSpec.hs, dist/build/test/test-tmp/MemInfo/PrintSpec.o )
[4 of 6] Compiling MemInfo.ProcSpec ( test/MemInfo/ProcSpec.hs, dist/build/test/test-tmp/MemInfo/ProcSpec.o )
[5 of 6] Compiling MemInfo.SysInfoSpec ( test/MemInfo/SysInfoSpec.hs, dist/build/test/test-tmp/MemInfo/SysInfoSpec.o )
[6 of 6] Compiling Main             ( test/Spec.hs, dist/build/test/test-tmp/Main.o )
[7 of 7] Linking dist/build/test/test
Preprocessing executable 'printmem' for mem-info-0.3.0.0..
Building executable 'printmem' for mem-info-0.3.0.0..
[1 of 1] Compiling Main             ( exe/PrintMem.hs, dist/build/printmem/printmem-tmp/Main.o )
[2 of 2] Linking dist/build/printmem/printmem
Running phase: checkPhase
Running 1 test suites...
Test suite test: RUNNING...

module System.MemInfo.Choices
  should parse a Choices from the command line ok [✔]
    +++ OK, passed 100 tests.
module System.MemInfo.Proc
  GenValid ExeInfo
    genValid   :: Gen ExeInfo
      only generates valid 'ExeInfo's [✔]
        +++ OK, passed 100 tests.
  parseExeInfo
    should parse all valid values successfully [✔]
      +++ OK, passed 100 tests.
  parseStatusInfo
    should parse all valid values successfully [✘]
  parseFromStatm
    when using a kernel version with unknown sharing
      should parse values to ProcUsage successfully [✔]
        +++ OK, passed 100 tests.
    when using a kernel version with known sharing
      should parse values to ProcUsage successfully [✔]
        +++ OK, passed 100 tests.
    When the statm content is invalid
      should not parse values to ProcUsage successfully [✔]
        +++ OK, passed 100 tests.
  parseFromSmap
    should parse values to ProcUsage successfully [✔]
      +++ OK, passed 100 tests.
module System.MemInfo.Print
  fmtAsHeader
    when discriminating by pid
      when swap is not required
        does not show it [✔]
      when swap is required
        does show it [✔]
    when not discriminating by pid
      when swap is not required
        does not show it [✔]
      when swap is required
        does show it [✔]
  fmtOverall
    when swap is not required
      does not show it [✔]
    when swap is required
      does show it [✔]
  fmtMemUsage
    when displaying by-pid
      and swap is not required
        does not show it [✔]
      when swap is required
        shows it [✔]
    when displaying by-name
      and swap is not required
        does not show it [✔]
  styleOutput
    when accurate and swap shown
      when style is csv
        when discriminating by pid
          should generate the expected output [✔]
        not discriminating by pid
          should generate the expected output [✔]
    when accurate and no swap shown
      when style is normal
        when discriminating by pid
          should generate the expected output [✔]
        not discriminating by pid
          should generate the expected output [✔]
module System.MemInfo.SysInfo
  parseKernelVersion
    should parse values from Text successfully [✔]
      +++ OK, passed 100 tests.

Failures:

  test/MemInfo/ProcSpec.hs:51:3: 
  1) module System.MemInfo.Proc, parseStatusInfo, should parse all valid values successfully
       Falsified (after 56 tests):
         (StatusInfo {siName = "\447253\952307\937210\876387\515085\305076\373977\871965\862421\n\630364\1017042\465594\257343\483502\188827\176404\873926\461443\661240\1041131\290374\11452\496974\551206", siParent = -89048437},"Uid: 64504\nGid: 36900\nFDSize: 42920\nNgid: 9033\nThreads: 17343\nName:\n  \447253\952307\937210\876387\515085\305076\373977\871965\862421\n  \630364\1017042\465594\257343\483502\188827\176404\873926\461443\661240\1041131\290374\11452\496974\551206\nPPid: -89048437\n")

  To rerun use: --match "/module System.MemInfo.Proc/parseStatusInfo/should parse all valid values successfully/" --seed 851376301

Randomized with seed 851376301

Finished in 0.1588 seconds
22 examples, 1 failure
Test suite test: FAIL
Test suite logged to: dist/test/mem-info-0.3.0.0-test.log
0 of 1 test suites (0 of 1 test cases) passed.

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

Successfully merging a pull request may close this issue.

2 participants