]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Add sqlite storage build conditions to sqlite storage closed test
authorMatt Joiner <anacrolix@gmail.com>
Tue, 27 Jun 2023 01:36:54 +0000 (11:36 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Tue, 27 Jun 2023 01:36:54 +0000 (11:36 +1000)
Should fix test build failure to build when CGO is disabled.

test/sqlite_test.go [moved from test/misc_test.go with 89% similarity]

similarity index 89%
rename from test/misc_test.go
rename to test/sqlite_test.go
index 4661c1a803437569579cada49ae0d924e7354ca5..437499d44197818a30a3b3e934f7e7d7c0e20f5c 100644 (file)
@@ -1,3 +1,9 @@
+// This infernal language makes me copy conditional compilation expressions around. This test should
+// run if sqlite storage is enabled, period.
+
+//go:build cgo
+// +build cgo
+
 package test
 
 import (