Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/syskit/actions/profile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def resolved_dependency_injection
end

def to_s
name
name || "<anonymous profile>"
end

# Promote requirements taken from another profile to this profile
Expand Down
2 changes: 1 addition & 1 deletion lib/syskit/droby/v5/droby_dump.rb
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def proxy(peer)

profile =
begin
constant(@name)
Object.const_get(@name)
rescue Exception
Actions::Profile.new(@name)
end
Expand Down
6 changes: 4 additions & 2 deletions test/droby/test_droby_dump.rb
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,10 @@ def proxy(_peer)
it "returns the constant" do
droby = droby_local_marshaller.dump(Actions::Profile.new("AProfile"))
droby = Marshal.load(Marshal.dump(droby))
flexmock(droby).should_receive(:constant).with("AProfile")
.and_return(profile = Actions::Profile.new)
profile = Syskit::Actions::Profile.new
flexmock(Object)
.should_receive(:const_get).with("AProfile")
.and_return(profile)
unmarshalled = droby_remote_marshaller.local_object(droby)
assert_same profile, unmarshalled
end
Expand Down