From a28fc9033896449ae3d4e0c698950bf3d115d09c Mon Sep 17 00:00:00 2001 From: Zubin Duggal <zubin.duggal@gmail.com> Date: Mon, 14 Oct 2024 14:10:17 +0530 Subject: [PATCH] testsuite: use -fhide-source-paths to normalise some backpack tests (cherry picked from commit b19de476bc5ce5c7792e8af1354b94a4286a1a13) --- testsuite/tests/backpack/should_compile/all.T | 4 ++-- testsuite/tests/backpack/should_compile/bkp16.stderr | 4 ++-- testsuite/tests/backpack/should_fail/all.T | 4 ++-- testsuite/tests/backpack/should_fail/bkpfail17.stderr | 4 ++-- testsuite/tests/backpack/should_fail/bkpfail19.stderr | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/testsuite/tests/backpack/should_compile/all.T b/testsuite/tests/backpack/should_compile/all.T index b6a830fbadb..3ed26324dcc 100644 --- a/testsuite/tests/backpack/should_compile/all.T +++ b/testsuite/tests/backpack/should_compile/all.T @@ -8,7 +8,7 @@ test('bkp11', normal, backpack_compile, ['']) test('bkp12', normal, backpack_compile, ['']) test('bkp14', normal, backpack_compile, ['']) test('bkp15', normal, backpack_compile, ['']) -test('bkp16', normalise_version('base', 'ghc-internal'), backpack_compile, ['']) +test('bkp16', [normalise_version('base', 'ghc-internal')], backpack_compile, ['-fhide-source-paths']) test('bkp17', normal, backpack_compile, ['']) test('bkp18', normal, backpack_compile, ['']) test('bkp19', normal, backpack_compile, ['']) @@ -60,4 +60,4 @@ test('T13214', normal, backpack_compile, ['']) test('T13250', normal, backpack_compile, ['']) test('T13323', normal, backpack_compile, ['']) test('T20396', normal, backpack_compile, ['']) -test('T23424', [ignore_stdout, ignore_stderr], backpack_compile, ['-ddump-rn-trace -ddump-if-trace -ddump-tc-trace']) \ No newline at end of file +test('T23424', [ignore_stdout, ignore_stderr], backpack_compile, ['-ddump-rn-trace -ddump-if-trace -ddump-tc-trace']) diff --git a/testsuite/tests/backpack/should_compile/bkp16.stderr b/testsuite/tests/backpack/should_compile/bkp16.stderr index 9489a7752fe..5e50948f189 100644 --- a/testsuite/tests/backpack/should_compile/bkp16.stderr +++ b/testsuite/tests/backpack/should_compile/bkp16.stderr @@ -1,9 +1,9 @@ [1 of 2] Processing p - [1 of 1] Compiling Int[sig] ( p/Int.hsig, nothing ) + [1 of 1] Compiling Int[sig] [2 of 2] Processing q Instantiating q [1 of 1] Including p[Int=base-4.20.0.0:GHC.Exts] Instantiating p[Int=base-4.20.0.0:GHC.Exts] [1 of 1] Including base-4.20.0.0 - [1 of 1] Compiling Int[sig] ( p/Int.hsig, bkp16.out/p/p-3JmGAx0a1DyKjX6bh7CxGJ/Int.o ) + [1 of 1] Compiling Int[sig] [1 of 1] Instantiating p diff --git a/testsuite/tests/backpack/should_fail/all.T b/testsuite/tests/backpack/should_fail/all.T index 8db576e5c87..0b2295d0ebe 100644 --- a/testsuite/tests/backpack/should_fail/all.T +++ b/testsuite/tests/backpack/should_fail/all.T @@ -12,9 +12,9 @@ test('bkpfail13', normal, backpack_compile_fail, ['']) test('bkpfail14', normal, backpack_compile_fail, ['']) test('bkpfail15', normal, backpack_compile_fail, ['']) test('bkpfail16', normalise_version('ghc-internal', 'base'), backpack_compile_fail, ['']) -test('bkpfail17', normalise_version('ghc-internal', 'base'), backpack_compile_fail, ['']) +test('bkpfail17', normalise_version('ghc-internal', 'base'), backpack_compile_fail, ['-fhide-source-paths']) test('bkpfail18', normal, backpack_compile_fail, ['']) -test('bkpfail19', normalise_version('ghc-internal', 'base'), backpack_compile_fail, ['']) +test('bkpfail19', normalise_version('ghc-internal', 'base'), backpack_compile_fail, ['-fhide-source-paths']) test('bkpfail20', normal, backpack_compile_fail, ['']) test('bkpfail21', normal, backpack_compile_fail, ['']) test('bkpfail22', normal, backpack_compile_fail, ['']) diff --git a/testsuite/tests/backpack/should_fail/bkpfail17.stderr b/testsuite/tests/backpack/should_fail/bkpfail17.stderr index d5500a600ba..d76898af883 100644 --- a/testsuite/tests/backpack/should_fail/bkpfail17.stderr +++ b/testsuite/tests/backpack/should_fail/bkpfail17.stderr @@ -1,10 +1,10 @@ [1 of 2] Processing p - [1 of 1] Compiling ShouldFail[sig] ( p/ShouldFail.hsig, nothing ) + [1 of 1] Compiling ShouldFail[sig] [2 of 2] Processing q Instantiating q [1 of 1] Including p[ShouldFail=base-4.20.0.0:Prelude] Instantiating p[ShouldFail=base-4.20.0.0:Prelude] - [1 of 1] Compiling ShouldFail[sig] ( p/ShouldFail.hsig, bkpfail17.out/p/p-9R9TTjIBG3MEjwCQffKVYM/ShouldFail.o ) + [1 of 1] Compiling ShouldFail[sig] <no location info>: error: [GHC-15843] • Type constructor ‘Either’ has conflicting definitions in the module and its hsig file. diff --git a/testsuite/tests/backpack/should_fail/bkpfail19.stderr b/testsuite/tests/backpack/should_fail/bkpfail19.stderr index 9ae1c05019c..bdb231480f4 100644 --- a/testsuite/tests/backpack/should_fail/bkpfail19.stderr +++ b/testsuite/tests/backpack/should_fail/bkpfail19.stderr @@ -1,10 +1,10 @@ [1 of 2] Processing p - [1 of 1] Compiling ShouldFail[sig] ( p/ShouldFail.hsig, nothing ) + [1 of 1] Compiling ShouldFail[sig] [2 of 2] Processing q Instantiating q [1 of 1] Including p[ShouldFail=base-4.20.0.0:Data.STRef] Instantiating p[ShouldFail=base-4.20.0.0:Data.STRef] - [1 of 1] Compiling ShouldFail[sig] ( p/ShouldFail.hsig, bkpfail19.out/p/p-Gwl8Z2CPH0M7Zi2wPSYSbs/ShouldFail.o ) + [1 of 1] Compiling ShouldFail[sig] <no location info>: error: [GHC-12424] • The hsig file (re)exports ‘Data.STRef.Lazy.newSTRef’ but the implementing module exports a different identifier ‘GHC.Internal.STRef.newSTRef’ -- GitLab