1 2 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3 <exe-name> is a <version> host application. 4 Run with -? for options 5 6 Randomness seeded to: 1 7 8 ------------------------------------------------------------------------------- 9 # A test name that starts with a # 10 ------------------------------------------------------------------------------- 11 Misc.tests.cpp:<line number> 12 ............................................................................... 13 14 Misc.tests.cpp:<line number>: PASSED: 15 with message: 16 yay 17 18 ------------------------------------------------------------------------------- 19 #1005: Comparing pointer to int and long (NULL can be either on various 20 systems) 21 ------------------------------------------------------------------------------- 22 Decomposition.tests.cpp:<line number> 23 ............................................................................... 24 25 Decomposition.tests.cpp:<line number>: PASSED: 26 REQUIRE( fptr == 0 ) 27 with expansion: 28 0 == 0 29 30 Decomposition.tests.cpp:<line number>: PASSED: 31 REQUIRE( fptr == 0l ) 32 with expansion: 33 0 == 0 34 35 ------------------------------------------------------------------------------- 36 #1027 37 ------------------------------------------------------------------------------- 38 Compilation.tests.cpp:<line number> 39 ............................................................................... 40 41 Compilation.tests.cpp:<line number>: PASSED: 42 REQUIRE( y.v == 0 ) 43 with expansion: 44 0 == 0 45 46 Compilation.tests.cpp:<line number>: PASSED: 47 REQUIRE( 0 == y.v ) 48 with expansion: 49 0 == 0 50 51 ------------------------------------------------------------------------------- 52 #1147 53 ------------------------------------------------------------------------------- 54 Compilation.tests.cpp:<line number> 55 ............................................................................... 56 57 Compilation.tests.cpp:<line number>: PASSED: 58 REQUIRE( t1 == t2 ) 59 with expansion: 60 {?} == {?} 61 62 Compilation.tests.cpp:<line number>: PASSED: 63 REQUIRE( t1 != t2 ) 64 with expansion: 65 {?} != {?} 66 67 Compilation.tests.cpp:<line number>: PASSED: 68 REQUIRE( t1 < t2 ) 69 with expansion: 70 {?} < {?} 71 72 Compilation.tests.cpp:<line number>: PASSED: 73 REQUIRE( t1 > t2 ) 74 with expansion: 75 {?} > {?} 76 77 Compilation.tests.cpp:<line number>: PASSED: 78 REQUIRE( t1 <= t2 ) 79 with expansion: 80 {?} <= {?} 81 82 Compilation.tests.cpp:<line number>: PASSED: 83 REQUIRE( t1 >= t2 ) 84 with expansion: 85 {?} >= {?} 86 87 ------------------------------------------------------------------------------- 88 #1175 - Hidden Test 89 ------------------------------------------------------------------------------- 90 Misc.tests.cpp:<line number> 91 ............................................................................... 92 93 Misc.tests.cpp:<line number>: PASSED: 94 95 ------------------------------------------------------------------------------- 96 #1238 97 ------------------------------------------------------------------------------- 98 Compilation.tests.cpp:<line number> 99 ............................................................................... 100 101 Compilation.tests.cpp:<line number>: PASSED: 102 REQUIRE( std::memcmp(uarr, "123", sizeof(uarr)) == 0 ) 103 with expansion: 104 0 == 0 105 with messages: 106 uarr := "123" 107 sarr := "456" 108 109 Compilation.tests.cpp:<line number>: PASSED: 110 REQUIRE( std::memcmp(sarr, "456", sizeof(sarr)) == 0 ) 111 with expansion: 112 0 == 0 113 with messages: 114 uarr := "123" 115 sarr := "456" 116 117 ------------------------------------------------------------------------------- 118 #1245 119 ------------------------------------------------------------------------------- 120 Compilation.tests.cpp:<line number> 121 ............................................................................... 122 123 Compilation.tests.cpp:<line number>: PASSED: 124 125 ------------------------------------------------------------------------------- 126 #1403 127 ------------------------------------------------------------------------------- 128 Compilation.tests.cpp:<line number> 129 ............................................................................... 130 131 Compilation.tests.cpp:<line number>: PASSED: 132 REQUIRE( h1 == h2 ) 133 with expansion: 134 [1403 helper] == [1403 helper] 135 136 This would not be caught previously 137 Nor would this 138 ------------------------------------------------------------------------------- 139 #1514: stderr/stdout is not captured in tests aborted by an exception 140 ------------------------------------------------------------------------------- 141 Tricky.tests.cpp:<line number> 142 ............................................................................... 143 144 Tricky.tests.cpp:<line number>: FAILED: 145 explicitly with message: 146 1514 147 148 ------------------------------------------------------------------------------- 149 #1548 150 ------------------------------------------------------------------------------- 151 Compilation.tests.cpp:<line number> 152 ............................................................................... 153 154 Compilation.tests.cpp:<line number>: PASSED: 155 REQUIRE( std::is_same<TypeList<int>, TypeList<int>>::value ) 156 with expansion: 157 true 158 159 ------------------------------------------------------------------------------- 160 #748 - captures with unexpected exceptions 161 outside assertions 162 ------------------------------------------------------------------------------- 163 Exception.tests.cpp:<line number> 164 ............................................................................... 165 166 Exception.tests.cpp:<line number>: FAILED: 167 due to unexpected exception with messages: 168 answer := 42 169 expected exception 170 171 ------------------------------------------------------------------------------- 172 #748 - captures with unexpected exceptions 173 inside REQUIRE_NOTHROW 174 ------------------------------------------------------------------------------- 175 Exception.tests.cpp:<line number> 176 ............................................................................... 177 178 Exception.tests.cpp:<line number>: FAILED: 179 REQUIRE_NOTHROW( thisThrows() ) 180 due to unexpected exception with messages: 181 answer := 42 182 expected exception 183 184 ------------------------------------------------------------------------------- 185 #748 - captures with unexpected exceptions 186 inside REQUIRE_THROWS 187 ------------------------------------------------------------------------------- 188 Exception.tests.cpp:<line number> 189 ............................................................................... 190 191 Exception.tests.cpp:<line number>: PASSED: 192 REQUIRE_THROWS( thisThrows() ) 193 with message: 194 answer := 42 195 196 ------------------------------------------------------------------------------- 197 #809 198 ------------------------------------------------------------------------------- 199 Compilation.tests.cpp:<line number> 200 ............................................................................... 201 202 Compilation.tests.cpp:<line number>: PASSED: 203 REQUIRE( 42 == f ) 204 with expansion: 205 42 == {?} 206 207 ------------------------------------------------------------------------------- 208 #833 209 ------------------------------------------------------------------------------- 210 Compilation.tests.cpp:<line number> 211 ............................................................................... 212 213 Compilation.tests.cpp:<line number>: PASSED: 214 REQUIRE( a == t ) 215 with expansion: 216 3 == 3 217 218 Compilation.tests.cpp:<line number>: PASSED: 219 CHECK( a == t ) 220 with expansion: 221 3 == 3 222 223 Compilation.tests.cpp:<line number>: PASSED: 224 REQUIRE_THROWS( throws_int(true) ) 225 226 Compilation.tests.cpp:<line number>: PASSED: 227 CHECK_THROWS_AS( throws_int(true), int ) 228 229 Compilation.tests.cpp:<line number>: PASSED: 230 REQUIRE_NOTHROW( throws_int(false) ) 231 232 Compilation.tests.cpp:<line number>: PASSED: 233 REQUIRE_THAT( "aaa", Catch::EndsWith("aaa") ) 234 with expansion: 235 "aaa" ends with: "aaa" 236 237 Compilation.tests.cpp:<line number>: PASSED: 238 REQUIRE( templated_tests<int>(3) ) 239 with expansion: 240 true 241 242 ------------------------------------------------------------------------------- 243 #835 -- errno should not be touched by Catch 244 ------------------------------------------------------------------------------- 245 Misc.tests.cpp:<line number> 246 ............................................................................... 247 248 Misc.tests.cpp:<line number>: FAILED: 249 CHECK( f() == 0 ) 250 with expansion: 251 1 == 0 252 253 Misc.tests.cpp:<line number>: PASSED: 254 REQUIRE( errno == 1 ) 255 with expansion: 256 1 == 1 257 258 ------------------------------------------------------------------------------- 259 #872 260 ------------------------------------------------------------------------------- 261 Compilation.tests.cpp:<line number> 262 ............................................................................... 263 264 Compilation.tests.cpp:<line number>: PASSED: 265 REQUIRE( x == 4 ) 266 with expansion: 267 {?} == 4 268 with message: 269 dummy := 0 270 271 ------------------------------------------------------------------------------- 272 #961 -- Dynamically created sections should all be reported 273 Looped section 0 274 ------------------------------------------------------------------------------- 275 Misc.tests.cpp:<line number> 276 ............................................................................... 277 278 Misc.tests.cpp:<line number>: PASSED: 279 with message: 280 Everything is OK 281 282 ------------------------------------------------------------------------------- 283 #961 -- Dynamically created sections should all be reported 284 Looped section 1 285 ------------------------------------------------------------------------------- 286 Misc.tests.cpp:<line number> 287 ............................................................................... 288 289 Misc.tests.cpp:<line number>: PASSED: 290 with message: 291 Everything is OK 292 293 ------------------------------------------------------------------------------- 294 #961 -- Dynamically created sections should all be reported 295 Looped section 2 296 ------------------------------------------------------------------------------- 297 Misc.tests.cpp:<line number> 298 ............................................................................... 299 300 Misc.tests.cpp:<line number>: PASSED: 301 with message: 302 Everything is OK 303 304 ------------------------------------------------------------------------------- 305 #961 -- Dynamically created sections should all be reported 306 Looped section 3 307 ------------------------------------------------------------------------------- 308 Misc.tests.cpp:<line number> 309 ............................................................................... 310 311 Misc.tests.cpp:<line number>: PASSED: 312 with message: 313 Everything is OK 314 315 ------------------------------------------------------------------------------- 316 #961 -- Dynamically created sections should all be reported 317 Looped section 4 318 ------------------------------------------------------------------------------- 319 Misc.tests.cpp:<line number> 320 ............................................................................... 321 322 Misc.tests.cpp:<line number>: PASSED: 323 with message: 324 Everything is OK 325 326 ------------------------------------------------------------------------------- 327 'Not' checks that should fail 328 ------------------------------------------------------------------------------- 329 Condition.tests.cpp:<line number> 330 ............................................................................... 331 332 Condition.tests.cpp:<line number>: FAILED: 333 CHECK( false != false ) 334 335 Condition.tests.cpp:<line number>: FAILED: 336 CHECK( true != true ) 337 338 Condition.tests.cpp:<line number>: FAILED: 339 CHECK( !true ) 340 with expansion: 341 false 342 343 =============================================================================== 344 test cases: 17 | 13 passed | 2 failed | 2 failed as expected 345 assertions: 40 | 33 passed | 4 failed | 3 failed as expected 346 347