1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-02 02:24:27 +00:00
nixpkgs/pkgs/tools/filesystems/cryfs/skip-failing-test-large-malloc.patch
2017-10-13 23:29:20 +08:00

35 lines
1.1 KiB
Diff

From ad3f7e9fa2dececfaab43963887a2f03de52d659 Mon Sep 17 00:00:00 2001
From: adisbladis <adis@blad.is>
Date: Thu, 12 Oct 2017 21:45:26 +0800
Subject: [PATCH] Skip failing test: large malloc
---
test/cpp-utils/data/DataTest.cpp | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/test/cpp-utils/data/DataTest.cpp b/test/cpp-utils/data/DataTest.cpp
index 6f9df070..bd426e62 100644
--- a/test/cpp-utils/data/DataTest.cpp
+++ b/test/cpp-utils/data/DataTest.cpp
@@ -191,17 +191,6 @@ TEST_F(DataTest, Inequality_DifferentLastByte) {
EXPECT_TRUE(data1 != data2);
}
-#ifdef __x86_64__
-TEST_F(DataTest, LargesizeSize) {
- //Needs 64bit for representation. This value isn't in the size param list, because the list is also used for read/write checks.
- uint64_t size = 4.5L*1024*1024*1024;
- Data data(size);
- EXPECT_EQ(size, data.size());
-}
-#else
-#warning This is not a 64bit architecture. Large size data tests are disabled.
-#endif
-
TEST_F(DataTest, LoadingNonexistingFile) {
TempFile file(false); // Pass false to constructor, so the tempfile is not created
EXPECT_FALSE(Data::LoadFromFile(file.path()));
--
2.14.2