Project

General

Profile

Feature #16043 » 0001-LOAD_PATH.resolve_feature_path-should-not-raise.patch

deivid (David Rodríguez), 08/04/2019 11:16 AM

View differences:

load.c
972 972
        sym = ID2SYM(rb_intern("so"));
973 973
        break;
974 974
      default:
975
        load_failed(fname);
975
        return Qnil;
976 976
    }
977 977

  
978 978
    return rb_ary_new_from_args(2, sym, path);
test/ruby/test_require.rb
917 917
      $:.replace(paths)
918 918
      $".replace(loaded)
919 919
    end
920

  
921
    def test_resolve_feature_path_with_missing_feature
922
      assert_nil($LOAD_PATH.resolve_feature_path("superkalifragilisticoespialidoso"))
923
    end
920 924
  end
921 925
end