Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e415339a7d2ff5b791bc02c4fa2a484e2c44b0be
Ticket: 2794560fffffffffffffffffffffffffffffffff
non-empty return from [runAllTests] - indicate status
User & Date: eriklns on 2013-01-19 23:13:44
Changes

  1. icomment:
    Oh, and of course true negative values are achieved by using a minus sign. Duh!
    
    --- tcltest.tcl.orig2013-01-19 14:01:28.000000000 +0100
    +++ tcltest.tcl2013-01-19 17:10:04.000000000 +0100
    @@ -2833,6 +2833,21 @@
     }
         }
     
    +    # Prepare a result, indicating whether all is well
    +    # (i.e. no test file failures and no failed tests).
    +    #
    +    # The result is a single integer, where:
    +    # - a negative number indicates the number of test file failures
    +    #   (ignoring the number of failed tests).
    +    # - a positive number indicates the number of failed tests, 
    +    #   given zero test file failures.
    +    # - zero indicates no failures at all
    +    #
    +    if {![info exists testFileFailures] ||
    +    ![set result -[llength $testFileFailures]]} {
    +    set result $numTests(Failed)
    +    }
    +
         # cleanup
         puts [outputChannel] "\nTests ended at [eval $timeCmd]"
         cleanupTests 1
    @@ -2856,7 +2871,7 @@
     puts [outputChannel] ""
     puts [outputChannel] [string repeat ~ 44]
         }
    -    return
    +    return $result
     }
     
     #####################################################################
    
    
    
  2. login: "eriklns"
  3. mimetype: "text/plain"
  4. username: "eriklns"