Add testcase macros to ensure that large-file cases are tested in WAL.

FossilOrigin-Name: 8156b57ac33161ae6dd8a9413127ecce3c9eae83
This commit is contained in:
drh
2010-07-07 13:43:19 +00:00
parent 60f9da7561
commit 3e8e7ecbc4
4 changed files with 41 additions and 18 deletions
+7
View File
@@ -272,6 +272,13 @@
# define NEVER(X) (X)
#endif
/*
** Return true (non-zero) if the input is a integer that is too large
** to fit in 32-bits. This macro is used inside of various testcase()
** macros to verify that we have tested SQLite for large-file support.
*/
#define IS_BIG_INT(X) (((X)&(i64)0xffffffff)!=0)
/*
** The macro unlikely() is a hint that surrounds a boolean
** expression that is usually false. Macro likely() surrounds