diff options
author | drh <> | 2022-02-10 21:26:53 +0000 |
---|---|---|
committer | drh <> | 2022-02-10 21:26:53 +0000 |
commit | d7e185ce5d6699e94db1f8431b38c809ac204a6c (patch) | |
tree | bd172263c5497b6012a0c7095ac4933037f74361 /src/sqliteInt.h | |
parent | eadccaa9269560e567b4ae0440de6e24745e6142 (diff) | |
download | sqlite-d7e185ce5d6699e94db1f8431b38c809ac204a6c.tar.gz sqlite-d7e185ce5d6699e94db1f8431b38c809ac204a6c.zip |
Enhance SQLITE_TESTCTRL_LOCALTIME_FAULT so that is able to install an
alternative localtime() interface so that the localtime logic an be better
tested.
FossilOrigin-Name: 6e25cb0890e8cdc63c9a21e841844d066267fc32ad143527843f7c8d05612b53
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r-- | src/sqliteInt.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h index 1ed600f4d..c8dbec2f1 100644 --- a/src/sqliteInt.h +++ b/src/sqliteInt.h @@ -3936,6 +3936,7 @@ struct Sqlite3Config { int (*xTestCallback)(int); /* Invoked by sqlite3FaultSim() */ #endif int bLocaltimeFault; /* True to fail localtime() calls */ + int (*xAltLocaltime)(const void*,void*); /* Alternative localtime() routine */ int iOnceResetThreshold; /* When to reset OP_Once counters */ u32 szSorterRef; /* Min size in bytes to use sorter-refs */ unsigned int iPrngSeed; /* Alternative fixed seed for the PRNG */ |