HomeSort by relevance Sort by last modified time
    Searched refs:assert (Results 1 - 25 of 3072) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/stlport/test/unit/
assert_header_test.c 8 #include <assert.h>
  /ndk/tests/device/test-gnustl-full/unit/
assert_header_test.c 8 #include <assert.h>
  /ndk/tests/device/test-stlport/unit/
assert_header_test.c 8 #include <assert.h>
  /external/clang/test/SemaCXX/
warn-string-conversion.cpp 5 void assert(bool condition);
10 assert("error"); // expected-warning{{implicit conversion turns string literal into bool: 'const char [6]' to 'bool'}}
11 assert(0 && "error");
  /external/valgrind/main/memcheck/tests/
malloc_usable.c 1 #include <assert.h>
14 assert(99 == malloc_usable_size(x));
15 assert( 0 == malloc_usable_size(NULL));
16 assert( 0 == malloc_usable_size((void*)0xdeadbeef));
memalign2.c 16 #include <assert.h>
31 assert(sizeof(long int) == sizeof(void*));
41 // assert failures (as reclaimable blocks cannot be splitted).
42 p = memalign(1024 * 1024, 4 * 1024 * 1024 + 1); assert(0 == (long)p % (1024 * 1024));
46 // an assert. Note that the test has to be run with a --free-list-vol
50 piece = malloc(1024 * 1000); assert (piece);
55 p = memalign(1024 * 1024, 4 * 1024 * 1024 + 1); assert(0 == (long)p % (1024 * 1024));
56 piece = malloc(1024 * 100); assert (piece);
60 p = memalign(0, 100); assert(0 == (long)p % 8);
61 p = memalign(1, 100); assert(0 == (long)p % 8)
    [all...]
  /external/webp/src/dec/
layer.c 12 #include <assert.h>
23 assert(dec);
24 assert(dec->layer_data_size_ > 0);
  /external/valgrind/main/memcheck/tests/darwin/
env.c 1 #include <assert.h>
15 assert( 0 == strcmp(getenv("MYVAR"), val1) );
18 assert( 0 == strcmp(getenv("MYVAR"), val2) );
21 assert( 0 == strcmp(getenv("MYVAR"), val2) );
24 assert( 0 == strcmp(getenv("MYVAR"), "xxxx") );
27 assert( NULL == getenv("MYVAR") );
  /dalvik/libdex/
DexOpcodes.cpp 26 #include <assert.h>
297 assert(op >= 0 && op < kNumPackedOpcodes);
  /external/clang/bindings/python/tests/cindex/
test_cursor.py 39 assert len(tu_nodes) == 3
41 assert tu_nodes[0] != tu_nodes[1]
42 assert tu_nodes[0].kind == CursorKind.STRUCT_DECL
43 assert tu_nodes[0].spelling == 's0'
44 assert tu_nodes[0].is_definition() == True
45 assert tu_nodes[0].location.file.name == 't.c'
46 assert tu_nodes[0].location.line == 4
47 assert tu_nodes[0].location.column == 8
48 assert tu_nodes[0].hash > 0
51 assert len(s0_nodes) ==
    [all...]
test_type.py 28 assert teststruct is not None, "Could not find teststruct."
30 assert all(x.kind == CursorKind.FIELD_DECL for x in fields)
32 assert fields[0].spelling == 'a'
33 assert not fields[0].type.is_const_qualified()
34 assert fields[0].type.kind == TypeKind.INT
35 assert fields[0].type.get_canonical().kind == TypeKind.INT
37 assert fields[1].spelling == 'b'
38 assert not fields[1].type.is_const_qualified()
39 assert fields[1].type.kind == TypeKind.TYPEDEF
40 assert fields[1].type.get_canonical().kind == TypeKind.IN
    [all...]
test_diagnostics.py 8 assert len(tu.diagnostics) == 1
9 assert tu.diagnostics[0].severity == Diagnostic.Warning
10 assert tu.diagnostics[0].location.line == 1
11 assert tu.diagnostics[0].location.column == 11
12 assert (tu.diagnostics[0].spelling ==
18 assert len(tu.diagnostics) == 1
19 assert tu.diagnostics[0].severity == Diagnostic.Warning
20 assert tu.diagnostics[0].location.line == 2
21 assert tu.diagnostics[0].location.column == 7
22 assert 'incompatible' in tu.diagnostics[0].spellin
    [all...]
test_cursor_kind.py 4 assert CursorKind.UNEXPOSED_DECL.name is 'UNEXPOSED_DECL'
7 assert CursorKind.UNEXPOSED_DECL in CursorKind.get_all_kinds()
8 assert CursorKind.TRANSLATION_UNIT in CursorKind.get_all_kinds()
13 assert CursorKind.UNEXPOSED_DECL.is_declaration()
14 assert CursorKind.TYPE_REF.is_reference()
15 assert CursorKind.DECL_REF_EXPR.is_expression()
16 assert CursorKind.UNEXPOSED_STMT.is_statement()
17 assert CursorKind.INVALID_FILE.is_invalid()
19 assert CursorKind.TRANSLATION_UNIT.is_translation_unit()
20 assert not CursorKind.TYPE_REF.is_translation_unit(
    [all...]
  /external/clang/test/SemaTemplate/
rdar9173693.cpp 4 template< bool C > struct assert { }; struct
6 template< typename Pred > assert<false> assert_not_arg( void (*)(Pred), typename assert_arg_pred<Pred>::type ); // expected-error 5 {{}}
  /external/icu4c/common/
uassert.h 13 * By default, U_ASSERT just wraps the C library assert macro.
14 * By changing the definition here, the assert behavior for ICU can be changed
15 * without affecting other non-ICU uses of the C library assert().
27 #include <assert.h>
28 #define U_ASSERT(exp) assert(exp)
  /external/valgrind/main/helgrind/tests/
tc15_laog_lockdel.c 5 #include <assert.h>
19 assert(mx1);
20 assert(mx2);
22 r = pthread_mutex_init( mx1, NULL ); assert(r==0);
23 r = pthread_mutex_init( mx2, NULL ); assert(r==0);
27 r = pthread_mutex_lock( mx1 ); assert(r==0);
28 r = pthread_mutex_lock( mx2 ); assert(r==0);
30 r = pthread_mutex_unlock( mx1 ); assert(r==0);
31 r = pthread_mutex_unlock( mx2 ); assert(r==0);
35 r = pthread_mutex_lock( mx2 ); assert(r==0); /* error *
    [all...]
tc13_laog1.c 5 #include <assert.h>
14 r = pthread_mutex_init( &mx1, NULL ); assert(r==0);
15 r = pthread_mutex_init( &mx2, NULL ); assert(r==0);
17 r = pthread_mutex_lock( &mx1 ); assert(r==0);
18 r = pthread_mutex_lock( &mx2 ); assert(r==0);
20 r = pthread_mutex_unlock( &mx1 ); assert(r==0);
21 r = pthread_mutex_unlock( &mx2 ); assert(r==0);
23 r = pthread_mutex_lock( &mx2 ); assert(r==0); /* error */
24 r = pthread_mutex_lock( &mx1 ); assert(r==0);
26 r = pthread_mutex_unlock( &mx1 ); assert(r==0)
    [all...]
locked_vs_unlocked2.c 5 #include <assert.h>
27 r= pthread_mutex_lock(&mx1a); assert(!r);
28 r= pthread_mutex_lock(&mx1b); assert(!r);
30 r= pthread_mutex_unlock(&mx1b); assert(!r);
31 r= pthread_mutex_unlock(&mx1a); assert(!r);
32 r= pthread_mutex_destroy(&mx1a); assert(!r);
43 r= pthread_mutex_lock(&mx2a); assert(!r);
44 r= pthread_mutex_lock(&mx2b); assert(!r);
46 r= pthread_mutex_unlock(&mx2b); assert(!r);
47 r= pthread_mutex_unlock(&mx2a); assert(!r)
    [all...]
tc10_rec_lock.c 11 #include <assert.h>
21 assert(r==0);
23 assert(r==0);
25 assert(r==0);
28 r = pthread_mutex_lock( &mx1 ); assert(r == 0);
30 r = pthread_mutex_lock( &mx1 ); assert(r == 0);
32 r = pthread_mutex_lock( &mx1 ); assert(r == 0);
35 r = pthread_mutex_unlock( &mx1 ); assert(r == 0);
37 r = pthread_mutex_unlock( &mx1 ); assert(r == 0);
39 r = pthread_mutex_unlock( &mx1 ); assert(r == 0)
    [all...]
tc12_rwl_trivial.c 9 #include <assert.h>
24 r = pthread_rwlock_init( &rwl, NULL ); assert(r == 0);
26 r = pthread_rwlock_wrlock( &rwl ); assert(r == 0);
27 r = pthread_rwlock_unlock( &rwl ); assert(r == 0);
29 r = pthread_rwlock_rdlock( &rwl ); assert(r == 0);
30 r = pthread_rwlock_rdlock( &rwl ); assert(r == 0);
31 r = pthread_rwlock_unlock( &rwl ); assert(r == 0);
32 r = pthread_rwlock_unlock( &rwl ); assert(r == 0);
35 r = pthread_rwlock_unlock( &rwl ); assert(OS_IS_DARWIN || r == 0);
37 r = pthread_rwlock_destroy( &rwl ); assert(r == 0)
    [all...]
  /external/valgrind/main/memcheck/tests/x86/
espindola2.c 3 #include <assert.h>
12 assert(x);
  /external/valgrind/main/drd/tests/
trylock.c 15 #include <assert.h>
30 r = pthread_rwlock_init(&rwlock, NULL); assert(r == 0);
32 r = pthread_rwlock_wrlock(&rwlock); assert(r == 0);
33 r = pthread_rwlock_unlock(&rwlock); assert(r == 0);
35 r = pthread_rwlock_trywrlock(&rwlock); assert(r == 0);
36 r = pthread_rwlock_unlock(&rwlock); assert(r == 0);
39 r = pthread_rwlock_timedwrlock(&rwlock, &abs_timeout); assert(r == 0);
40 r = pthread_rwlock_unlock(&rwlock); assert(r == 0);
43 r = pthread_rwlock_rdlock(&rwlock); assert(r == 0);
44 r = pthread_rwlock_rdlock(&rwlock); assert(r == 0)
    [all...]
  /external/valgrind/main/massif/tests/
malloc_usable.c 1 #include <assert.h>
14 assert(104 == malloc_usable_size(x) ||
16 assert( 0 == malloc_usable_size(NULL));
17 assert( 0 == malloc_usable_size((void*)0xdeadbeef));
  /external/webkit/Source/ThirdParty/ANGLE/src/compiler/
debug.h 12 #include <assert.h>
36 #define ASSERT(expression) do { \
38 Trace("Assert failed: %s(%d): "#expression"\n", __FUNCTION__, __LINE__); \
39 assert(expression); \
44 assert(false); \
49 assert(false); \
  /bionic/libc/include/
assert.h 1 /* $OpenBSD: assert.h,v 1.12 2006/01/31 10:53:51 hshoexer Exp $ */
2 /* $NetBSD: assert.h,v 1.6 1994/10/26 00:55:44 cgd Exp $ */
37 * @(#)assert.h 8.2 (Berkeley) 1/21/94
41 * Unlike other ANSI header files, <assert.h> may usefully be included
47 #undef assert macro
51 # define assert(e) ((void)0) macro
54 # define _assert(e) assert(e)
56 # define assert(e) ((e) ? (void)0 : __assert2(__FILE__, __LINE__, __func__, #e)) macro
58 # define assert(e) ((e) ? (void)0 : __assert(__FILE__, __LINE__, #e)) macro

Completed in 831 milliseconds

1 2 3 4 5 6 7 8 91011>>