More unit test stability

This commit is contained in:
Matthias Koefferlein 2021-02-27 21:31:32 +01:00
parent 5a31d243ff
commit 8d6a43b6d2
2 changed files with 4 additions and 4 deletions

View File

@ -27,6 +27,7 @@
// Testing the converter main implementation (CIF)
TEST(1)
{
#if defined(HAVE_PYTHON)
std::string fp (tl::testsrc ());
fp += "/testdata/bd/strmrun.py";
@ -51,5 +52,6 @@ TEST(1)
tl::info << data;
EXPECT_EQ (data, "Hello, world (0,-42;42,0)!\n");
#endif
}

View File

@ -1398,10 +1398,8 @@ class Basic_TestClass < TestBase
assert_equal(RBA::A.a20_get == nil, false)
# after "manage" the object gets volatile again
1.times do
a = RBA::A.a20_get
a._manage
end
a = RBA::A.a20_get
a._manage
# Looks like Ruby is keeping the last A instance in some kind of cache:
# this will release it