From 209da655b3275e7172cd4fe1640b068e62763b01 Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Thu, 6 Oct 2016 21:42:52 +0100 Subject: [PATCH] Skip large file test on 32-bit platforms This test cannot run on 32-bit machines as they cannot access files large than 2G. Makes flexnbd on 32-bit a bit useless really.. --- tests/acceptance/test_happy_path.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/acceptance/test_happy_path.rb b/tests/acceptance/test_happy_path.rb index c69c117..0a286c8 100644 --- a/tests/acceptance/test_happy_path.rb +++ b/tests/acceptance/test_happy_path.rb @@ -115,6 +115,11 @@ class TestHappyPath < Test::Unit::TestCase def test_write_to_high_block + # + # This test does not work on 32 bit platforms. + # + skip("Not relevant on 32-bit platforms") if ( ["a"].pack("p").size < 8 ) + # Create a large file, then try to write to somewhere after the 2G boundary @env.truncate1 "4G" @env.serve1