[Hackage] #871: Library with test builds the test executable against the library's cabal_macros.h

#871: Library with test builds the test executable against the library's cabal_macros.h ----------------------------+----------------------------------------------- Reporter: AntoineLatter | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.10.1.0 Severity: normal | Keywords: Difficulty: unknown | Ghcversion: Platform: | ----------------------------+----------------------------------------------- Things like 'VERSION_package' may not only be wrong, but may cause compile errors if the library doesn't include the package in question (but the test does). This is likely to come up in a MIN_VERSION_criterion or MIN_VERSION_HUnit case. This might only be a problem if the test executable is using the new "build against a compiled version of the library" technique - I haven't played around too much. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/871 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#871: Library with test builds the test executable against the library's cabal_macros.h ----------------------------+----------------------------------------------- Reporter: AntoineLatter | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.10.1.0 Severity: normal | Keywords: Difficulty: unknown | Ghcversion: Platform: | ----------------------------+----------------------------------------------- Comment(by AntoineLatter): Am I using the test-suite the wrong way? I expected something like MIN_VERSION_HUnit to work. Maybe I am expecting too much :) -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/871#comment:1 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#871: Library with test builds the test executable against the library's cabal_macros.h ----------------------------+----------------------------------------------- Reporter: AntoineLatter | Owner: Type: defect | Status: closed Priority: normal | Milestone: Component: Cabal library | Version: 1.10.1.0 Severity: normal | Resolution: fixed Keywords: | Difficulty: unknown Ghcversion: | Platform: ----------------------------+----------------------------------------------- Comment(by guest): I am not sure what the version field of the ticket indicates. I still see the error with: cabal-install version 0.10.2 using version 1.10.2.0 of the Cabal library -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/871#comment:3 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects
participants (1)
-
Hackage