[GHC] #12774: bkpcabal02 test fails on OS X

GHC ghc-devs at haskell.org
Fri Oct 28 01:03:45 UTC 2016


#12774: bkpcabal02 test fails on OS X
-------------------------------------+-------------------------------------
           Reporter:  bgamari        |             Owner:
               Type:  task           |            Status:  new
           Priority:  normal         |         Milestone:  8.2.1
          Component:  Test Suite     |           Version:  8.0.1
           Keywords:                 |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  None/Unknown
  Unknown/Multiple                   |
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 While testing on Darwin today I noticed that the `bkpcabal02` test seems
 to fail.
 {{{
 =====> bkpcabal02(normal) 1 of 1 [0, 0, 0]
 cd "./backpack/cabal/bkpcabal02/bkpcabal02.run" && $MAKE -s --no-print-
 directory bkpcabal02 CLEANUP=1
 Wrong exit code (expected 0 , actual 2 )
 Stdout:
 Preprocessing library 'bkpcabal01-0.1.0.0-DwERz0Bcrkn4WeBnYMX11h-p' for
 bkpcabal01-0.1.0.0...
 Preprocessing library 'bkpcabal01-0.1.0.0-DwERz0Bcrkn4WeBnYMX11h-q' for
 bkpcabal01-0.1.0.0...

 Stderr:
 make[2]: *** [bkpcabal02] Error 1

 *** unexpected failure for bkpcabal02(normal)
 }}}

 Or more verbosely,
 {{{
 $ make bkpcabal02
 rm -f -r tmp.d inst dist Setup
 /Applications/Xcode-7.2/Xcode.app/Contents/Developer/usr/bin/make -s --no-
 print-directory clean
 '/Users/bgamari/ghc/inplace/test   spaces/ghc-pkg' init tmp.d
 '/Users/bgamari/ghc/inplace/test   spaces/ghc-stage2' -v0 --make Setup
 cp p/H.hsig.in1 p/H.hsig
 # typecheck everything
 ./Setup -v0 configure --enable-library-vanilla --disable-shared --with-
 ghc='/Users/bgamari/ghc/inplace/test   spaces/ghc-stage2' --ghc-options
 ='-dcore-lint -dcmm-lint -no-user-package-db -rtsopts  -fno-warn-missed-
 specialisations -fshow-warning-groups -dno-debug-output' --package-
 db=tmp.d
 --prefix='/Users/bgamari/ghc/testsuite/tests/backpack/cabal/bkpcabal02/inst'
 ./Setup -v0 build
 ./Setup -v0 -v1 build
 Preprocessing library 'bkpcabal01-0.1.0.0-DwERz0Bcrkn4WeBnYMX11h-p' for
 bkpcabal01-0.1.0.0...
 Preprocessing library 'bkpcabal01-0.1.0.0-DwERz0Bcrkn4WeBnYMX11h-q' for
 bkpcabal01-0.1.0.0...
 cp p/H.hsig.in2 p/H.hsig
 ! ./Setup -v0 build
 make: *** [bkpcabal02] Error 1
 }}}

 It looks like the `./Setup build` command is finishing successfully where
 it is expected to fail. I generally don't mind debugging this sort of
 issue but in this case it's quite unclear why this is expected to fail.

 Edward, can you add some comments to the `all.T` for this testcase (and
 perhaps the other Backpack tests too if neceessary) explaining what this
 test is supposed to be testing for and why `Setup build` should fail?

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12774>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list