aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/elementary/src/bin/test.h
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-04-22 09:20:32 +1000
committerDavid Walter Seikel2012-04-22 09:20:32 +1000
commit3ad3455551be0d7859ecb02290376206d5e66498 (patch)
tree497917e12b4d7f458dff9765d9b53f64c4e03fc3 /libraries/elementary/src/bin/test.h
parentUpdate EFL to latest beta. (diff)
downloadSledjHamr-3ad3455551be0d7859ecb02290376206d5e66498.zip
SledjHamr-3ad3455551be0d7859ecb02290376206d5e66498.tar.gz
SledjHamr-3ad3455551be0d7859ecb02290376206d5e66498.tar.bz2
SledjHamr-3ad3455551be0d7859ecb02290376206d5e66498.tar.xz
And actually include new files, plus elementary libraries.
Diffstat (limited to 'libraries/elementary/src/bin/test.h')
-rw-r--r--libraries/elementary/src/bin/test.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/libraries/elementary/src/bin/test.h b/libraries/elementary/src/bin/test.h
new file mode 100644
index 0000000..0f0e6fe
--- /dev/null
+++ b/libraries/elementary/src/bin/test.h
@@ -0,0 +1,19 @@
1#ifndef _TEST_H
2#define _TEST_H
3
4#define fail_if(expr) \
5 do { \
6 if ( expr ) \
7 { \
8 FILE *fp; \
9 char buf[1024]; \
10 sprintf(buf, "fail_%s.txt", elm_win_title_get(win)); \
11 if ((fp = fopen(buf, "a")) != NULL) \
12 { \
13 fprintf(fp, "Failed at %s:%d on <%s>\n", \
14 __FILE__, __LINE__, #expr); \
15 fclose(fp); \
16 } \
17 } \
18 } while(0)
19#endif