File: 1001-Disable-broken-test.patch

package info (click to toggle)
mkcal 0.7.27%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 704 kB
  • sloc: cpp: 8,034; perl: 28; xml: 16; makefile: 15
file content (19 lines) | stat: -rw-r--r-- 773 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
From: Guido Berhoerster <guido+debian@berhoerster.name>
Subject: Disable broken test tst_perf
 The problem intst_perf is that unless a populated database is passed in via
 the SQLITESTORAGEDB environment variable, a temporary file is created which is
 the passed to sqlite3_open() which creates an empty database. In this case
 ExtendedStorage::Ptr::open() calls SqliteStorage::open() which expects
 database tables to exist and tries to do a database schema migration which
 fails because the database is still empty.
--- mkcal.orig/tests/CMakeLists.txt
+++ mkcal/tests/CMakeLists.txt
@@ -36,7 +36,7 @@ target_link_libraries(tst_perf
 	KF5::CalendarCore
 	mkcal-qt5)
 
-add_test(tst_perf tst_perf)
+# add_test(tst_perf tst_perf)
 
 add_executable(tst_load tst_load.cpp)