summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorなつき <[email protected]>2024-07-03 11:19:25 -0700
committergit <[email protected]>2024-07-05 09:02:52 +0000
commit88a2a46e233fb52107f4ef921813f14243af75d4 (patch)
tree88cf9c16763374b6fcce86933a5af52ee2fc3461 /test
parentcd1ea98bdcf9f1db7a64ba9173722d478ff9a3ff (diff)
[rubygems/rubygems] Restrict generic `arm` to only match 32-bit arm
https://github.com/rubygems/rubygems/commit/14c4c16e96
Diffstat (limited to 'test')
-rw-r--r--test/rubygems/test_gem_platform.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/rubygems/test_gem_platform.rb b/test/rubygems/test_gem_platform.rb
index 7c21c734ff..070c8007bc 100644
--- a/test/rubygems/test_gem_platform.rb
+++ b/test/rubygems/test_gem_platform.rb
@@ -368,18 +368,27 @@ class TestGemPlatform < Gem::TestCase
arm = Gem::Platform.new "arm-linux"
armv5 = Gem::Platform.new "armv5-linux"
armv7 = Gem::Platform.new "armv7-linux"
+ arm64 = Gem::Platform.new "arm64-linux"
util_set_arch "armv5-linux"
assert((arm === Gem::Platform.local), "arm === armv5")
assert((armv5 === Gem::Platform.local), "armv5 === armv5")
refute((armv7 === Gem::Platform.local), "armv7 === armv5")
+ refute((arm64 === Gem::Platform.local), "arm64 === armv5")
refute((Gem::Platform.local === arm), "armv5 === arm")
util_set_arch "armv7-linux"
assert((arm === Gem::Platform.local), "arm === armv7")
refute((armv5 === Gem::Platform.local), "armv5 === armv7")
assert((armv7 === Gem::Platform.local), "armv7 === armv7")
+ refute((arm64 === Gem::Platform.local), "arm64 === armv7")
refute((Gem::Platform.local === arm), "armv7 === arm")
+
+ util_set_arch "arm64-linux"
+ refute((arm === Gem::Platform.local), "arm === arm64")
+ refute((armv5 === Gem::Platform.local), "armv5 === arm64")
+ refute((armv7 === Gem::Platform.local), "armv7 === arm64")
+ assert((arm64 === Gem::Platform.local), "arm64 === arm64")
end
def test_equals3_universal_mingw