We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aec09e2 commit 01b28d5Copy full SHA for 01b28d5
test/rcd_test/test/test_basic.rb
@@ -35,4 +35,13 @@ def test_largefile_op_removed_from_musl
35
is_linux = RUBY_PLATFORM.include?("linux")
36
assert_equal(is_linux, RcdTest.largefile_op_removed_from_musl)
37
end
38
+
39
+ def test_disabled_rpath
40
+ cext_fname = $LOADED_FEATURES.grep(/rcd_test_ext/).first
41
+ refute_nil(cext_fname, "the C-ext should be loaded")
42
+ cext_text = File.binread(cext_fname)
43
+ assert_match(/Init_rcd_test_ext/, cext_text, "C-ext shoud contain the init function")
44
+ refute_match(/usr\/local/, cext_text, "there should be no rpath to /usr/local/rake-compiler/ruby/x86_64-unknown-linux-musl/ruby-3.4.5/lib or so")
45
+ refute_match(/home\//, cext_text, "there should be no path to /home/ or so")
46
+ end
47
0 commit comments