Skip to content

runtests.py reports OK even when there are failures #304

Closed

Description

@sunfishcode

Tweaking a test to induce a failure, I get this output:

......................................................# Failure running /wasm/spec/ml-proto/wasm test/return.wast

.........

Ran 63 tests in 5.869s

OK

Activity

  1. added this to the MVP milestone on Jul 5, 2016
  2. rossberg commented on Jul 5, 2016

    @rossberg
    Member

    That's weird, I can't reproduce that. How does the test fail when you run it individually?

  3. sunfishcode commented on Jul 5, 2016

    @sunfishcode
    MemberAuthor

    I made this edit:

    $ git diff
    diff --git a/ml-proto/test/return.wast b/ml-proto/test/return.wast
    index b5bdb1c..9ceca43 100644
    --- a/ml-proto/test/return.wast
    +++ b/ml-proto/test/return.wast
    @@ -193,7 +193,7 @@
     (assert_return (invoke "type-f64"))
    
     (assert_return (invoke "nullary"))
    -(assert_return (invoke "unary") (f64.const 3.1))
    +(assert_return (invoke "unary") (f64.const 3.2))
    
     (assert_return (invoke "as-func-first") (i32.const 1))
     (assert_return (invoke "as-func-mid") (i32.const 2))

    runtests.py does this:

    $ ./runtests.py 
    ......................................................# Failure running /wasm/spec/ml-proto/wasm test/return.wast
    .........
    ----------------------------------------------------------------------
    Ran 63 tests in 5.850s
    
    OK
    

    Running the test manually fails as expected:

    $ ./wasm test/return.wast 
    Result: 3.1 : f64
    Expect: 3.2 : f64
    test/return.wast:196.1-196.49: wrong return value
    
  4. rossberg commented on Jul 5, 2016

    @rossberg
    Member

    Okay, I can reproduce that. Will look into it.

  5. rossberg commented on Jul 5, 2016

    @rossberg
    Member

    I just pushed a fix, should work now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions