3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/xapian/skip-flaky-darwin-test.patch

34 lines
1.3 KiB
Diff
Raw Normal View History

2019-02-17 14:39:29 +00:00
diff -Naur xapian-core.old/tests/api_db.cc xapian-core.new/tests/api_db.cc
--- xapian-core.old/tests/api_db.cc
+++ xapian-core.new/tests/api_db.cc
@@ -1020,6 +1020,7 @@
2019-02-17 14:39:29 +00:00
// test for keepalives
DEFINE_TESTCASE(keepalive1, remote) {
+ SKIP_TEST("Fails in darwin nix build environment");
2020-02-27 16:45:44 +00:00
Xapian::Database db(get_remote_database("apitest_simpledata", 5000));
2019-02-17 14:39:29 +00:00
2020-02-27 16:45:44 +00:00
/* Test that keep-alives work */
2019-02-17 14:39:29 +00:00
diff -Naur xapian-core.old/tests/api_scalability.cc xapian-core.new/tests/api_scalability.cc
--- xapian-core.old/tests/api_scalability.cc
+++ xapian-core.new/tests/api_scalability.cc
@@ -53,6 +53,7 @@
}
DEFINE_TESTCASE(bigoaddvalue1, writable) {
+ SKIP_TEST("Fails in darwin nix build environment");
// O(n*n) is bad, but O(n*log(n)) is acceptable.
test_scalability(bigoaddvalue1_helper, 5000, O_N_LOG_N);
return true;
diff -Naur xapian-core.old/tests/api_serialise.cc xapian-core.new/tests/api_serialise.cc
--- xapian-core.old/tests/api_serialise.cc
+++ xapian-core.new/tests/api_serialise.cc
@@ -110,6 +110,7 @@
// Test for serialising a document obtained from a database.
DEFINE_TESTCASE(serialise_document2, writable) {
+ SKIP_TEST("Fails in darwin nix build environment");
Xapian::Document origdoc;
origdoc.add_term("foo", 2);
origdoc.add_posting("foo", 10);