From 0db3763c44662bc6fbe91a9742d7f463799dec11 Mon Sep 17 00:00:00 2001 From: Arne Goedeke <el@laramies.com> Date: Sat, 3 Aug 2013 14:02:20 +0200 Subject: [PATCH] mapping: fixed test case The recently added cleanup of weak mappings during rehash makes adding entries to a weak mapping semantically similar to running gc(). Using this analogy, the testcase before this commit assumed that mapping a = set_weak_flag(([]), 1); a[17] = ({ 17 }); gc(); results in a having one entry, which is clearly false. --- src/testsuite.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/testsuite.in b/src/testsuite.in index a3abe4dbd2..c36cef93ac 100644 --- a/src/testsuite.in +++ b/src/testsuite.in @@ -6400,7 +6400,7 @@ test_do(add_constant("blatinka");) return !sizeof (a) && !sizeof (b); }]], 1); test_any([[{ - mapping a = ([17:({17})]); + mapping a = ([17:17]); set_weak_flag (a, 1); for (int i = 0; i < 10; i++) a[class{}()] = i; mapping b = a + ([]); -- GitLab