Fix a fragile test

`Dir.mktmpdir` concatenates a random base-36 number separated by "-",
so may generate pathnames containing "-j4".
This commit is contained in:
Nobuyoshi Nakada 2025-12-20 21:37:45 +09:00
parent a57039196f
commit 8f7c3603c1
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465

View File

@ -1610,7 +1610,7 @@ ERROR: Possible alternatives: non_existent_with_hint
gem_make_out = File.read(File.join(gemspec.extension_dir, "gem_make.out"))
if vc_windows? && nmake_found?
refute_includes(gem_make_out, "-j4")
refute_includes(gem_make_out, " -j4")
else
assert_includes(gem_make_out, "make -j4")
end