@no_asan('local count too large for VMs')
def test_sqlite(self):
    self.set_setting('DISABLE_EXCEPTION_CATCHING', 1)
    self.set_setting('EXPORTED_FUNCTIONS', ['_main', '_sqlite3_open', '_sqlite3_close', '_sqlite3_exec', '_sqlite3_free'])
    if ((self.get_setting('ASM_JS') == 1) and ('-g' in self.emcc_args)):
        print('disabling inlining')
        self.set_setting('INLINING_LIMIT', 50)
    self.emcc_args += ['-Wno-implicit-int-float-conversion']
    self.emcc_args += ['-Wno-unknown-warning-option']
    self.emcc_args += [('-I' + path_from_root('tests', 'third_party', 'sqlite'))]
    src = '\n       #define SQLITE_DISABLE_LFS\n       #define LONGDOUBLE_TYPE double\n       #define SQLITE_INT64_TYPE long long int\n       #define SQLITE_THREADSAFE 0\n    '
    src += open(path_from_root('tests', 'third_party', 'sqlite', 'sqlite3.c')).read()
    src += open(path_from_root('tests', 'sqlite', 'benchmark.c')).read()
    self.do_run(src, open(path_from_root('tests', 'sqlite', 'benchmark.txt')).read(), includes=[path_from_root('tests', 'sqlite')], force_c=True)
@no_asan('local count too large for VMs')
def test_sqlite(self):
    self.set_setting('DISABLE_EXCEPTION_CATCHING', 1)
    self.set_setting('EXPORTED_FUNCTIONS', ['_main', '_sqlite3_open', '_sqlite3_close', '_sqlite3_exec', '_sqlite3_free'])
    if ((self.get_setting('ASM_JS') == 1) and ('-g' in self.emcc_args)):
        print('disabling inlining')
        self.set_setting('INLINING_LIMIT', 50)
    self.emcc_args += ['-Wno-implicit-int-float-conversion']
    self.emcc_args += ['-Wno-unknown-warning-option']
    self.emcc_args += [('-I' + path_from_root('tests', 'third_party', 'sqlite'))]
    src = '\n       #define SQLITE_DISABLE_LFS\n       #define LONGDOUBLE_TYPE double\n       #define SQLITE_INT64_TYPE long long int\n       #define SQLITE_THREADSAFE 0\n    '
    src += open(path_from_root('tests', 'third_party', 'sqlite', 'sqlite3.c')).read()
    src += open(path_from_root('tests', 'sqlite', 'benchmark.c')).read()
    self.do_run(src, open(path_from_root('tests', 'sqlite', 'benchmark.txt')).read(), includes=[path_from_root('tests', 'sqlite')], force_c=True)