Opened 3 years ago

Closed 3 years ago

#5351 closed bug (fixed)

Unexpected failure: message format changed

Reported by: daniel.is.fischer Owned by:
Priority: normal Milestone:
Component: Test Suite Version: 7.1
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

Description

apirecomp001 fails unexpectedly with

Actual stderr output differs from expected:
--- ./ghc-api/apirecomp001/apirecomp001.stderr	2011-07-27 18:41:56.216000004 +0200
+++ ./ghc-api/apirecomp001/apirecomp001.run.stderr	2011-07-27 20:07:41.321000006 +0200
@@ -5,8 +5,8 @@
 
 B.hs:5:12:
     Warning: Defaulting the following constraint(s) to type `Integer'
-               (Enum a0) arising from the arithmetic sequence `1 .. 23 * 2'
-                         at B.hs:5:12-20
+               (Enum a0)
+                 arising from the arithmetic sequence `1 .. 23 * 2' at B.hs:5:12-20
                (Num a0) arising from the literal `2' at B.hs:5:19
     In the first argument of `length', namely `[1 .. 23 * 2]'
     In the first argument of `(-)', namely `length [1 .. 23 * 2]'
@@ -21,8 +21,8 @@
 
 B.hs:5:12:
     Warning: Defaulting the following constraint(s) to type `Integer'
-               (Enum a0) arising from the arithmetic sequence `1 .. 23 * 2'
-                         at B.hs:5:12-20
+               (Enum a0)
+                 arising from the arithmetic sequence `1 .. 23 * 2' at B.hs:5:12-20
                (Num a0) arising from the literal `2' at B.hs:5:19
     In the first argument of `length', namely `[1 .. 23 * 2]'
     In the first argument of `(-)', namely `length [1 .. 23 * 2]'
*** unexpected failure for apirecomp001(normal)

Perhaps the comparison between expected and actual stderr output could be made whitespace-insensitive?

Change History (1)

comment:1 Changed 3 years ago by simonpj

  • Resolution set to fixed
  • Status changed from new to closed

Fixed by

commit f63bd3fd7c7f8400287c475e396e8af748ff75ee
Author: Simon Peyton Jones <simonpj@microsoft.com>
Date:   Fri Jul 29 13:12:11 2011 +0100

    Error message wibble (fixes #5351)

>---------------------------------------------------------------

 tests/ghc-api/apirecomp001/apirecomp001.stderr |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
Note: See TracTickets for help on using tickets.