[liblouis-liblouisxml] Re: Why is there an error in this test run?

  • From: Mesar Hameed <mesar.hameed@xxxxxxxxx>
  • To: liblouis-liblouisxml@xxxxxxxxxxxxx
  • Date: Fri, 6 Jun 2014 19:16:12 +0200

On Fri 06/06/14,16:46, Keith Creasy wrote:
> Then, what you are calling an "expected failure" is actually a passing test. 
> So, it should say "passed".
> 
> If I write a test that  says something like 
> AssertFalse(1 == 0, "Test that 1 is not equal to 0.");
> 
> Then the test passes.

The test you give is a pass, but is not the case for the expected
failures.

in exampleTest.c we have something like

Assert(invarient1 == 0, "ensure cursor always starts at 0.");

when we compile and run exampleTest it always fails.

then in makefile.am we override this by marking exampleTest this as a known 
failure.

hope this is clearer.
Mesar

Attachment: signature.asc
Description: Digital signature

Other related posts: