summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2022-07-19 08:56:14 -0400
committerBen Gamari <ben@smart-cactus.org>2022-07-20 22:30:54 -0400
commite294c22f43863d6a31458428a50bbcd5e087ec2d (patch)
treec738e968614946fc88f4649fb298fea438308521
parent8d491b783f19b008d5bc226386db9945d3890697 (diff)
downloadhaskell-e294c22f43863d6a31458428a50bbcd5e087ec2d.tar.gz
testsuite: Normalise versions in UnusedPackages
-rw-r--r--testsuite/tests/warnings/should_compile/UnusedPackages.stderr2
-rw-r--r--testsuite/tests/warnings/should_compile/all.T6
2 files changed, 5 insertions, 3 deletions
diff --git a/testsuite/tests/warnings/should_compile/UnusedPackages.stderr b/testsuite/tests/warnings/should_compile/UnusedPackages.stderr
index f86b09b82a..483a69a708 100644
--- a/testsuite/tests/warnings/should_compile/UnusedPackages.stderr
+++ b/testsuite/tests/warnings/should_compile/UnusedPackages.stderr
@@ -2,7 +2,7 @@
<no location info>: warning: [-Wunused-packages]
The following packages were specified via -package or -package-id flags,
but were not needed for compilation:
- - bytestring-0.11.3.0 (exposed by flag -package bytestring)
+ - bytestring-0.11.3.1 (exposed by flag -package bytestring)
- ghc-9.3 (exposed by flag -package ghc)
- process-1.6.14.0 (exposed by flag -package process)
[1 of 2] Compiling Main ( UnusedPackages.hs, UnusedPackages.o )
diff --git a/testsuite/tests/warnings/should_compile/all.T b/testsuite/tests/warnings/should_compile/all.T
index 3c514245fe..539d5d9184 100644
--- a/testsuite/tests/warnings/should_compile/all.T
+++ b/testsuite/tests/warnings/should_compile/all.T
@@ -33,8 +33,10 @@ test('StarBinder', normal, compile, [''])
test('Overflow', expect_broken_for(16543, ['hpc']), compile, [''])
-test('UnusedPackages', normal, multimod_compile,
- ['UnusedPackages.hs', '-package=bytestring -package=base -package=process -package=ghc -Wunused-packages'])
+test('UnusedPackages',
+ normalise_version('process', 'bytestring', 'ghc'),
+ multimod_compile,
+ ['UnusedPackages.hs', '-package=bytestring -package=base -package=process -package=ghc -Wunused-packages'])
test('T18402', normal, compile, [''])