Skip to content

Commit

Permalink
swift_unknownRetain_n returns no value on linux. we are moving toward…
Browse files Browse the repository at this point in the history
…s returning/forwarding no object for swift_unknownRetain_n on Mac and Linux. rdar://22724641

Swift SVN r32002
  • Loading branch information
trentxintong committed Sep 16, 2015
1 parent 3fdfd1a commit 7670445
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions unittests/runtime/Refcounting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,8 @@ TEST(RefcountingTest, unknown_retain_release_n) {
size_t value = 0;
auto object = allocTestObject(&value, 1);
EXPECT_EQ(0u, value);
auto retainResult = swift_unknownRetain_n(object, 32);
EXPECT_EQ(object, retainResult);
retainResult = swift_unknownRetain(object);
EXPECT_EQ(object, retainResult);
swift_unknownRetain_n(object, 32);
swift_unknownRetain(object);
EXPECT_EQ(0u, value);
EXPECT_EQ(34u, swift_retainCount(object));
swift_unknownRelease_n(object, 31);
Expand Down

0 comments on commit 7670445

Please sign in to comment.