enabling dmesg log in libc library for golang sqlite repo

140 views
Skip to first unread message

Srinivas Pokala

unread,
Apr 6, 2023, 12:32:47 AM4/6/23
to golang-dev
Hi  all,

I am working sqlite in pure go repo, where some of tcl test cases getting fail. In order to check read/write thing on libc library How to log dmesg information in libc functionality.

I have tried adding -tags=libc.dmesg to test go test  run command and adding dmesg("") API in Xread/Xwrite functions in libc library, I am not able to see dmesg logging in the /tmp/libc.log file. The file is generating and maintaining each run of testsuite time stamp.


Regards,
Srinivas

Jan Mercl

unread,
Apr 6, 2023, 3:15:25 AM4/6/23
to Srinivas Pokala, golang-dev
Hi Srinivas.
The golang-dev list is for the developers of Go. For other questions
please use the sqlite issue tracker or the golang-nuts mailing list,
thanks.

Wrt the tags, can you please show the exact command you have used?
I'll subsequently send you another off-list email with an example from
my computer once I get to it.

-j

Srinivas Pokala

unread,
Apr 13, 2023, 12:30:59 AM4/13/23
to golang-dev
Hi Jan,

Thank's for the info, I have used  $ go test -timeout 24h -v -run Tcl  -Xtags=libc.dmesg -suite full 2>&1 | tee log-full .

In the sqlite library there are some of sysfault test cases which failing below is the error verbose

! sysfault-2.1-vfsfault-transient.1 expected: [0 ok]
! sysfault-2.1-vfsfault-transient.1 got:      [1 {nfail=1 rc=1 result=file is not a database list={0 {abc def ghi truncate abc def ghi jkl mno pqr 2}}}]
! sysfault-2.1-vfsfault-transient.2 expected: [0 ok]
! sysfault-2.1-vfsfault-transient.2 got:      [1 {nfail=1 rc=1 result=file is not a database list={0 {abc def ghi truncate abc def ghi jkl mno pqr 2}}}]
! sysfault-2.1-vfsfault-transient.3 expected: [0 ok]
! sysfault-2.1-vfsfault-transient.3 got:      [1 {nfail=1 rc=1 result=file is not a database list={0 {abc def ghi truncate abc def ghi jkl mno pqr 2}}}]
! sysfault-2.1-vfsfault-transient.4 expected: [0 ok]
! sysfault-2.1-vfsfault-transient.4 got:      [1 {nfail=0 rc=1 result=file is not a database list={0 {abc def ghi truncate abc def ghi jkl mno pqr 2}}}]
! sysfault-2.2-vfsfault-persistent.2 expected: [0 ok]
! sysfault-2.2-vfsfault-persistent.2 got:      [1 {nfail=2 rc=1 result=file is not a database list={0 {abc def ghi truncate abc def ghi jkl mno pqr 2}} {1 {unable to open database file}} {1 {unable to open database: test.db2}} {1 {attempt to write a readonly database}} {1 {disk I/O error}}}]
! sysfault-2.2-vfsfault-persistent.3 expected: [0 ok]
! sysfault-2.2-vfsfault-persistent.3 got:      [1 {nfail=1 rc=1 result=file is not a database list={0 {abc def ghi truncate abc def ghi jkl mno pqr 2}} {1 {unable to open database file}} {1 {unable to open database: test.db2}} {1 {attempt to write a readonly database}} {1 {disk I/O error}}}]
! sysfault-2.2-vfsfault-persistent.4 expected: [0 ok]
! sysfault-2.2-vfsfault-persistent.4 got:      [1 {nfail=0 rc=1 result=file is not a database list={0 {abc def ghi truncate abc def ghi jkl mno pqr 2}} {1 {unable to open database file}} {1 {unable to open database: test.db2}} {1 {attempt to write a readonly database}} {1 {disk I/O error}}}]
! sysfault-2.2-vfsfault-transient.1 expected: [0 ok]
! sysfault-2.2-vfsfault-transient.1 got:      [1 {nfail=1 rc=1 result=file is not a database list={0 {abc def ghi truncate abc def ghi jkl mno pqr 2}} {1 {unable to open database file}} {1 {unable to open database: test.db2}} {1 {attempt to write a readonly database}} {1 {disk I/O error}}}]
! sysfault-2.2-vfsfault-transient.2 expected: [0 ok]
! sysfault-2.2-vfsfault-transient.2 got:      [1 {nfail=1 rc=1 result=file is not a database list={0 {abc def ghi truncate abc def ghi jkl mno pqr 2}} {1 {unable to open database file}} {1 {unable to open database: test.db2}} {1 {attempt to write a readonly database}} {1 {disk I/O error}}}]
! sysfault-2.2-vfsfault-transient.3 expected: [0 ok]
! sysfault-2.2-vfsfault-transient.3 got:      [1 {nfail=1 rc=1 result=file is not a database list={0 {abc def ghi truncate abc def ghi jkl mno pqr 2}} {1 {unable to open database file}} {1 {unable to open database: test.db2}} {1 {attempt to write a readonly database}} {1 {disk I/O error}}}]
! sysfault-2.2-vfsfault-transient.4 expected: [0 ok]
! sysfault-2.2-vfsfault-transient.4 got:      [1 {nfail=0 rc=1 result=file is not a database list={0 {abc def ghi truncate abc def ghi jkl mno pqr 2}} {1 {unable to open database file}} {1 {unable to open database: test.db2}} {1 {attempt to write a readonly database}} {1 {disk I/O error}}}]
Time: sysfault.test 488 ms
SQLite 2023-03-22 11:56:21 0d1fc92f94cb6b76bffe3ec34d69cffde2924203304e8ffc4155597af0c191da
11 errors out of 1213 tests on t83lp71.lnxero1.boe Linux 64-bit big-endian
!Failures on these tests: sysfault-2.1-vfsfault-transient.1 sysfault-2.1-vfsfault-transient.2 sysfault-2.1-vfsfault-transient.3 sysfault-2.1-vfsfault-transient.4 sysfault-2.2-vfsfault-persistent.2 sysfault-2.2-vfsfault-persistent.3 sysfault-2.2-vfsfault-persistent.4 sysfault-2.2-vfsfault-transient.1 sysfault-2.2-vfsfault-transient.2 sysfault-2.2-vfsfault-transient.3 sysfault-2.2-vfsfault-transient.4
WARNING: Multi-threaded tests skipped: Linked against a non-threadsafe Tcl build
All memory allocations freed - no leaks
Maximum memory usage: 146304 bytes
Current memory usage: 0 bytes
Number of malloc()  : -1 calls
    tcl_test.go:137: exit status 1
--- FAIL: TestTclTest (1.13s)
Reply all
Reply to author
Forward
0 new messages