Skip to content

Commit 059e349

Browse files
committed
rename function and give the right number of parameters
1 parent 0314005 commit 059e349

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

exe/arduino_ci.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ def perform_unit_tests(cpp_library, file_config)
447447

448448
def build_shared_library(gcc_binary, platform, config, cpp_library)
449449
attempt_multiline("Build shared library with #{gcc_binary} for #{platform}") do
450-
exe = cpp_library.build_share_library_with_configuration(
450+
exe = cpp_library.build_shared_library(
451451
config.aux_libraries_for_unittest,
452452
gcc_binary,
453453
config.gcc_config(platform)

lib/arduino_ci/cpp_library.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ def build_for_test(test_file, gcc_binary)
519519
# @param gcc_binary [String] name of a compiler
520520
# @param ci_gcc_config [Hash] The GCC config object
521521
# @return [Pathname] path to the compiled test executable
522-
def build_share_library_with_configuration(aux_libraries, gcc_binary, ci_gcc_config)
522+
def build_shared_library(aux_libraries, gcc_binary, ci_gcc_config)
523523
Dir.mkdir BUILD_DIR unless File.exist?(BUILD_DIR)
524524
if OS.windows?
525525
flag = ENV["PATH"].include? ";"

spec/cpp_library_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def verified_install(backend, path)
4545
config = ArduinoCI::CIConfig.default.from_example(cpp_lib_path)
4646
path = config.allowable_unittest_files(@cpp_library.test_files).first
4747
compiler = config.compilers_to_use.first
48-
result = @cpp_library.build_shared_library(path, [], compiler, config.gcc_config("uno"))
48+
result = @cpp_library.build_shared_library([], compiler, config.gcc_config("uno"))
4949
expect(result).to be nil
5050
result = @cpp_library.build_for_test(path, compiler)
5151
expect(result).to be nil
@@ -275,7 +275,7 @@ def verified_install(backend, path)
275275
expected = path.basename.to_s.include?("good")
276276
config.compilers_to_use.each do |compiler|
277277
it "tests #{File.basename(path)} with #{compiler} expecting #{expected}" do
278-
exe = @cpp_library.build_shared_library(path, [], compiler, config.gcc_config("uno"))
278+
exe = @cpp_library.build_shared_library([], compiler, config.gcc_config("uno"))
279279
expect(exe).not_to be nil
280280
exe = @cpp_library.build_for_test(path, compiler)
281281
expect(exe).not_to be nil

spec/testsomething_unittests_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474

7575
before(:each) do
7676
@cpp_library = backend.install_local_library(cpp_lib_path)
77-
@cpp.library.build_shared_library(path, [], compiler, config.gcc_config("uno"))
77+
@cpp.library.build_shared_library([], compiler, config.gcc_config("uno"))
7878
@exe = @cpp_library.build_for_test(path, compiler)
7979
end
8080

0 commit comments

Comments
 (0)