Lines Matching refs:CHECK_MESSAGE
61 CHECK_MESSAGE( next_value[tid] == T(offset), "" ); in check_item()
75 CHECK_MESSAGE( msg == true, "" ); in operator ()()
134 … CHECK_MESSAGE( ( all_touches[n] == false), "value see by more than one thread\n" ); in validate_touches()
182 CHECK_MESSAGE( my_q.try_put( T (N*tid + j ) ) == true, "" ); in operator ()()
213 CHECK_MESSAGE( q.reserve_item(v) == true, "" ); in test_reservation()
214 CHECK_MESSAGE( v == T(1), "" ); in test_reservation()
215 CHECK_MESSAGE( q.release_reservation() == true, "" ); in test_reservation()
218 CHECK_MESSAGE( q.reserve_item(v) == true, "" ); in test_reservation()
219 CHECK_MESSAGE( v == T(1), "" ); in test_reservation()
220 CHECK_MESSAGE( q.consume_reservation() == true, "" ); in test_reservation()
224 CHECK_MESSAGE( q.try_get(v) == true, "" ); in test_reservation()
225 CHECK_MESSAGE( v == T(2), "" ); in test_reservation()
229 CHECK_MESSAGE( q.reserve_item(v) == true, "" ); in test_reservation()
230 CHECK_MESSAGE( v == T(3), "" ); in test_reservation()
231 CHECK_MESSAGE( q.release_reservation() == true, "" ); in test_reservation()
234 CHECK_MESSAGE( q.reserve_item(v) == true, "" ); in test_reservation()
235 CHECK_MESSAGE( v == T(3), "" ); in test_reservation()
236 CHECK_MESSAGE( q.consume_reservation() == true, "" ); in test_reservation()
272 CHECK_MESSAGE( next_value[tid] == T(N), "" ); in test_parallel()
278 CHECK_MESSAGE( q.try_get( j ) == false, "" ); in test_parallel()
279 CHECK_MESSAGE( j == bogus_value, "" ); in test_parallel()
287 CHECK_MESSAGE( t.validate_touches(), "" ); in test_parallel()
290 CHECK_MESSAGE( q.try_get( j ) == false, "" ); in test_parallel()
291 CHECK_MESSAGE( j == bogus_value, "" ); in test_parallel()
298 CHECK_MESSAGE( t2.validate_touches(), "" ); in test_parallel()
301 CHECK_MESSAGE( q.try_get( j ) == false, "" ); in test_parallel()
302 CHECK_MESSAGE( j == bogus_value, "" ); in test_parallel()
312 CHECK_MESSAGE( t3.validate_touches(), "" ); in test_parallel()
316 CHECK_MESSAGE( q.try_get( j ) == false, "" ); in test_parallel()
318 CHECK_MESSAGE( q2.try_get( j ) == false, "" ); in test_parallel()
320 CHECK_MESSAGE( q3.try_get( j ) == false, "" ); in test_parallel()
321 CHECK_MESSAGE( j == bogus_value, "" ); in test_parallel()
324 CHECK_MESSAGE( remove_successor( q, q2 ), "" ); in test_parallel()
329 CHECK_MESSAGE( q_copy.try_get( j ) == false, "" ); in test_parallel()
330 CHECK_MESSAGE( register_successor( q, q_copy ) == true, "" ); in test_parallel()
335 CHECK_MESSAGE( t.validate_touches(), "" ); in test_parallel()
338 CHECK_MESSAGE( q.try_get( j ) == false, "" ); in test_parallel()
339 CHECK_MESSAGE( j == bogus_value, "" ); in test_parallel()
340 CHECK_MESSAGE( q_copy.try_get( j ) == false, "" ); in test_parallel()
341 CHECK_MESSAGE( j == bogus_value, "" ); in test_parallel()
371 CHECK_MESSAGE( register_predecessor( q, q2 ) == false, "" ); in test_serial()
372 CHECK_MESSAGE( remove_predecessor( q, q2 ) == false, "" ); in test_serial()
373 CHECK_MESSAGE( q.try_get( j ) == false, "" ); in test_serial()
374 CHECK_MESSAGE( j == bogus_value, "" ); in test_serial()
382 CHECK_MESSAGE( msg == true, "" ); in test_serial()
389 CHECK_MESSAGE( i == j, "" ); in test_serial()
393 CHECK_MESSAGE( q.try_get( j ) == false, "" ); in test_serial()
394 CHECK_MESSAGE( j == bogus_value, "" ); in test_serial()
400 CHECK_MESSAGE( msg == true, "" ); in test_serial()
407 CHECK_MESSAGE( i == j, "" ); in test_serial()
411 CHECK_MESSAGE( q.try_get( j ) == false, "" ); in test_serial()
413 CHECK_MESSAGE( q2.try_get( j ) == false, "" ); in test_serial()
414 CHECK_MESSAGE( j == bogus_value, "" ); in test_serial()
417 CHECK_MESSAGE( q.try_put( 1 ) == true, "" ); in test_serial()
419 CHECK_MESSAGE( q2.try_get( j ) == false, "" ); in test_serial()
420 CHECK_MESSAGE( j == bogus_value, "" ); in test_serial()
422 CHECK_MESSAGE( q.try_get( j ) == true, "" ); in test_serial()
423 CHECK_MESSAGE( j == 1, "" ); in test_serial()
431 CHECK_MESSAGE( msg == true, "" ); in test_serial()
437 CHECK_MESSAGE( i == j, "" ); in test_serial()
441 CHECK_MESSAGE( q.try_get( j ) == false, "" ); in test_serial()
443 CHECK_MESSAGE( q2.try_get( j ) == false, "" ); in test_serial()
445 CHECK_MESSAGE( q3.try_get( j ) == false, "" ); in test_serial()
446 CHECK_MESSAGE( j == bogus_value, "" ); in test_serial()
449 CHECK_MESSAGE( q.try_put( 1 ) == true, "" ); in test_serial()
451 CHECK_MESSAGE( q2.try_get( j ) == false, "" ); in test_serial()
452 CHECK_MESSAGE( j == bogus_value, "" ); in test_serial()
454 CHECK_MESSAGE( q3.try_get( j ) == false, "" ); in test_serial()
455 CHECK_MESSAGE( j == bogus_value, "" ); in test_serial()
457 CHECK_MESSAGE( q.try_get( j ) == true, "" ); in test_serial()
458 CHECK_MESSAGE( j == 1, "" ); in test_serial()
546 CHECK_MESSAGE( res, "queue_node must accept input." );
550 CHECK_MESSAGE( res, "queue_node must reserve as it has an item." );
551 CHECK_MESSAGE( (val == 42), "queue_node must reserve once passed item." );
554 CHECK_MESSAGE((q.try_reserve(out_arg) == false), "Reserving a reserved node should fail.");
555 CHECK_MESSAGE((out_arg == -1), "Reserving a reserved node should not update its argument.");
558 CHECK_MESSAGE((q.try_get(out_arg) == false), "Getting from reserved node should fail.");
559 CHECK_MESSAGE((out_arg == -1), "Getting from reserved node should not update its argument.");