CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
77 lines
1.9 KiB
Plaintext
77 lines
1.9 KiB
Plaintext
# 2007 September 5
|
|
#
|
|
# The author disclaims copyright to this source code. In place of
|
|
# a legal notice, here is a blessing:
|
|
#
|
|
# May you do good and not evil.
|
|
# May you find forgiveness for yourself and forgive others.
|
|
# May you share freely, never taking more than you give.
|
|
#
|
|
#***********************************************************************
|
|
#
|
|
# The focus of this file is testing the code in test_async.c.
|
|
# Specifically, it tests that the xFullPathname() method of
|
|
# of the asynchronous vfs works correctly.
|
|
#
|
|
# $Id: async3.test,v 1.5 2009/04/25 08:39:15 danielk1977 Exp $
|
|
|
|
set testdir [file dirname $argv0]
|
|
source $testdir/tester.tcl
|
|
|
|
if { [info commands sqlite3async_initialize]=="" } {
|
|
# The async logic is not built into this system
|
|
puts "Skipping async3 tests: not compiled with required features"
|
|
finish_test
|
|
return
|
|
}
|
|
|
|
db close
|
|
sqlite3async_initialize "" 1
|
|
#set sqlite3async_trace 1
|
|
sqlite3async_start
|
|
|
|
set paths {
|
|
chocolate/banana/vanilla/file.db
|
|
chocolate//banana/vanilla/file.db
|
|
chocolate/./banana//vanilla/file.db
|
|
chocolate/banana/./vanilla/file.db
|
|
chocolate/banana/../banana/vanilla/file.db
|
|
chocolate/banana/./vanilla/extra_bit/../file.db
|
|
}
|
|
|
|
do_test async3-1.0 {
|
|
file mkdir [file join chocolate banana vanilla]
|
|
forcedelete chocolate/banana/vanilla/file.db
|
|
forcedelete chocolate/banana/vanilla/file.db-journal
|
|
} {}
|
|
|
|
do_test async3-1.1 {
|
|
sqlite3 db chocolate/banana/vanilla/file.db
|
|
execsql {
|
|
CREATE TABLE abc(a, b, c);
|
|
BEGIN;
|
|
INSERT INTO abc VALUES(1, 2, 3);
|
|
}
|
|
} {}
|
|
|
|
set N 2
|
|
foreach p $paths {
|
|
sqlite3 db2 $p
|
|
do_test async3-1.$N.1 {
|
|
execsql {SELECT * FROM abc} db2
|
|
} {}
|
|
do_test async3-1.$N.2 {
|
|
catchsql {INSERT INTO abc VALUES(4, 5, 6)} db2
|
|
} {1 {database is locked}}
|
|
db2 close
|
|
incr N
|
|
}
|
|
|
|
db close
|
|
|
|
sqlite3async_control halt idle
|
|
sqlite3async_wait
|
|
sqlite3async_control halt never
|
|
sqlite3async_shutdown
|
|
finish_test
|