projects
/
profile
/
ivi
/
sphinxbase.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Initial import to Tizen
[profile/ivi/sphinxbase.git]
/
test
/
unit
/
test_alloc
/
test_ckd_alloc_fail.c
1
#include <stdio.h>
2
3
#include <ckd_alloc.h>
4
5
#include "test_macros.h"
6
7
int
8
main(int argc, char *argv[])
9
{
10
int *alloc1;
11
int bad_alloc_did_not_fail = FALSE;
12
13
ckd_set_jump(NULL, FALSE);
14
/* Guaranteed to fail, we hope!. */
15
alloc1 = ckd_calloc(-1,-1);
16
TEST_ASSERT(bad_alloc_did_not_fail);
17
18
return 0;
19
}