mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-01 06:27:03 +03:00
Minor SQLTester test tweaks and have 'make tester' include the out-of-tree tests if they are found.
FossilOrigin-Name: 6c8538d83495ce65dbd7417263b3b06dbbb2a649e9a61a743911944599d75ffc
This commit is contained in:
@ -4341,11 +4341,14 @@ Java_org_sqlite_jni_SQLite3Jni_init(JENV_CSELF){
|
||||
};
|
||||
jfieldID fieldId;
|
||||
const ConfigFlagEntry * pConfFlag;
|
||||
|
||||
memset(&S3JniGlobal, 0, sizeof(S3JniGlobal));
|
||||
if( (*env)->GetJavaVM(env, &S3JniGlobal.jvm) ){
|
||||
(*env)->FatalError(env, "GetJavaVM() failure shouldn't be possible.");
|
||||
return;
|
||||
}
|
||||
#if 0
|
||||
/* Just for sanity checking... */
|
||||
(void)S3JniGlobal_env_cache(env);
|
||||
if( !S3JniGlobal.envCache.aHead ){
|
||||
(*env)->FatalError(env, "Could not allocate JNIEnv-specific cache.");
|
||||
@ -4354,6 +4357,7 @@ Java_org_sqlite_jni_SQLite3Jni_init(JENV_CSELF){
|
||||
assert( 1 == S3JniGlobal.metrics.envCacheMisses );
|
||||
assert( env == S3JniGlobal.envCache.aHead->env );
|
||||
assert( 0 != S3JniGlobal.envCache.aHead->g.cObj );
|
||||
#endif
|
||||
|
||||
for( pConfFlag = &aLimits[0]; pConfFlag->zName; ++pConfFlag ){
|
||||
char const * zSig = (JTYPE_BOOL == pConfFlag->jtype) ? "Z" : "I";
|
||||
|
@ -396,8 +396,8 @@ public class Tester1 {
|
||||
affirm( "SELECT 1".equals(sqlite3_sql(stmt)) );
|
||||
sqlite3_finalize(stmt);
|
||||
stmt = prepare(db, "SELECT ?");
|
||||
sqlite3_bind_text(stmt, 1, "hello");
|
||||
affirm( "SELECT 'hello'".equals(sqlite3_expanded_sql(stmt)) );
|
||||
sqlite3_bind_text(stmt, 1, "hell😃");
|
||||
affirm( "SELECT 'hell😃'".equals(sqlite3_expanded_sql(stmt)) );
|
||||
sqlite3_finalize(stmt);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user