diff options
Diffstat (limited to 'vespalib/src/tests/sync')
-rw-r--r-- | vespalib/src/tests/sync/sync_test.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/vespalib/src/tests/sync/sync_test.cpp b/vespalib/src/tests/sync/sync_test.cpp index a17f9089877..c8888bc8e54 100644 --- a/vespalib/src/tests/sync/sync_test.cpp +++ b/vespalib/src/tests/sync/sync_test.cpp @@ -119,17 +119,7 @@ Test::Main() CHECK_UNLOCKED(monitor); } } - // copy/assign is nop, but legal - { - Lock a; - Lock b(a); - b = a; - } - { - Monitor a; - Monitor b(a); - b = a; - } + // you can lock const objects { const Lock lock; |