From: nobu@... Date: 2014-10-06T07:07:07+00:00 Subject: [ruby-core:65434] [ruby-trunk - Bug #10325] [Closed] [PATCH] test_string (test_LSHIFT_neary_long_max): skip if low on memory Issue #10325 has been updated by Nobuyoshi Nakada. Status changed from Assigned to Closed % Done changed from 0 to 100 Applied in changeset r47817. ---------- test_string.rb: enable huge test only on possible platforms * test/ruby/test_string.rb (test_LSHIFT_neary_long_max): enable only on platforms where string size range is smaller than memory space. this test does not make sense but just wastes memory and time on other platforms, as it is hardly possible that a string size becomes neary LONG_MAX if long size equals pointer size. [ruby-core:65410] [Bug #10325] ---------------------------------------- Bug #10325: [PATCH] test_string (test_LSHIFT_neary_long_max): skip if low on memory https://bugs.ruby-lang.org/issues/10325#change-49219 * Author: Eric Wong * Status: Closed * Priority: Normal * Assignee: Nobuyoshi Nakada * Category: test * Target version: current: 2.2.0 * ruby -v: trunk * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN ---------------------------------------- I've been skipping this test for a while on my weaker systems, but this makes it automated so it avoids triggering a swap storm for Linux users less familiar with the test suite. I think this only affects Linux which defaults to overcommit. Asking users to disable overcommit is unreasonable, so I figure this is the best way... ---Files-------------------------------- 0001-test-ruby-test_string-skip-test-if-low-on-memory.patch (1.88 KB) -- https://bugs.ruby-lang.org/