Skip to content

Commit

Permalink
do not call initialize of ruby from builtin
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Feb 10, 2014
1 parent 1633615 commit 2c640c0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions src/binary/Builtin.cc
Expand Up @@ -31,7 +31,6 @@ extern "C" {
#include "Y2YCPTypeConv.h"
#include "Y2RubyTypeConv.h"
#include "RubyLogger.h"
#include "YRuby.h"
#include "Y2RubyUtils.h"

static VALUE rb_mSCR;
Expand All @@ -49,7 +48,6 @@ extern "C" {

static VALUE call_builtin(const string &qualified_name, int argc, VALUE *argv)
{
YRuby::yRuby();
extern StaticDeclaration static_declarations;
YaST::ee.setFilename(RSTRING_PTR(argv[0]));
YaST::ee.setLinenumber(FIX2INT(argv[1]));
Expand Down
1 change: 1 addition & 0 deletions tests/ruby/test_helper.rb
Expand Up @@ -6,5 +6,6 @@
end
$:.unshift binary_path # yastx.so
$:.unshift "#{ROOT_DIR}/src/ruby" # yast.rb
ENV["LD_LIBRARY_PATH"] = binary_path
ENV["Y2DIR"] = File.dirname(__FILE__) + "/test_module"

0 comments on commit 2c640c0

Please sign in to comment.