Commit 487a7160 authored by Kirill Smelkov's avatar Kirill Smelkov

Merge branch 'master' into t

* master:
  bigfile/tests: Fix typos
parents e211dd41 e5e9557b
# Wendeling.core.bigfile | Basic tests # Wendelin.core.bigfile | Basic tests
# Copyright (C) 2014-2015 Nexedi SA and Contributors. # Copyright (C) 2014-2019 Nexedi SA and Contributors.
# Kirill Smelkov <kirr@nexedi.com> # Kirill Smelkov <kirr@nexedi.com>
# #
# This program is free software: you can Use, Study, Modify and Redistribute # This program is free software: you can Use, Study, Modify and Redistribute
...@@ -370,7 +370,7 @@ class GCBigFile(DelBigFile): ...@@ -370,7 +370,7 @@ class GCBigFile(DelBigFile):
self.obj_4del = None self.obj_4del = None
assert w() is not None assert w() is not None
# del a=b cycle - it should stay alice, while gc is disabled # del a=b cycle - it should stay alive, while gc is disabled
gc_save = gc.isenabled() gc_save = gc.isenabled()
gc.disable() gc.disable()
......
# Wendeling.core.bigfile | Tests for BigFile_File # Wendelin.core.bigfile | Tests for BigFile_File
# Copyright (C) 2014-2015 Nexedi SA and Contributors. # Copyright (C) 2014-2019 Nexedi SA and Contributors.
# Kirill Smelkov <kirr@nexedi.com> # Kirill Smelkov <kirr@nexedi.com>
# #
# This program is free software: you can Use, Study, Modify and Redistribute # This program is free software: you can Use, Study, Modify and Redistribute
......
# Wendeling.core.bigfile | Tests for ZODB BigFile backend # Wendelin.core.bigfile | Tests for ZODB BigFile backend
# Copyright (C) 2014-2015 Nexedi SA and Contributors. # Copyright (C) 2014-2019 Nexedi SA and Contributors.
# Kirill Smelkov <kirr@nexedi.com> # Kirill Smelkov <kirr@nexedi.com>
# #
# This program is free software: you can Use, Study, Modify and Redistribute # This program is free software: you can Use, Study, Modify and Redistribute
...@@ -396,7 +396,7 @@ def test_bigfile_filezodb_vs_conn_migration(): ...@@ -396,7 +396,7 @@ def test_bigfile_filezodb_vs_conn_migration():
wait('T2-zfile2-modified') wait('T2-zfile2-modified')
# XXX do we want to also modify some other objesct? # XXX do we want to also modify some other objects?
# (but this have side effect for joining conn11_2 to txn) # (but this have side effect for joining conn11_2 to txn)
transaction.commit() # should be nothing transaction.commit() # should be nothing
tell('T1-txn12-committed') tell('T1-txn12-committed')
...@@ -450,7 +450,7 @@ def test_bigfile_filezodb_vs_conn_migration(): ...@@ -450,7 +450,7 @@ def test_bigfile_filezodb_vs_conn_migration():
# now verify that zfile2 stays at 11 state, i.e. T21 was really aborted # now verify that zfile2 stays at 11 state, i.e. T21 was really aborted
conn02 = db.open() conn02 = db.open()
# NOTE top of connection stack is conn21(=conn01), becase conn11_2 has 0 # NOTE top of connection stack is conn21(=conn01), because conn11_2 has 0
# active objects # active objects
assert conn02 is conn01 assert conn02 is conn01
root02 = conn02.root() root02 = conn02.root()
...@@ -533,8 +533,8 @@ def test_bigfile_filezodb_vs_conn_migration(): ...@@ -533,8 +533,8 @@ def test_bigfile_filezodb_vs_conn_migration():
# now verify that zfile2 changed to 22 state, i.e. T22 was really committed # now verify that zfile2 changed to 22 state, i.e. T22 was really committed
conn03 = db.open() conn03 = db.open()
# NOTE top of connection stack is conn22(=conn01), becase it has most # of # NOTE top of connection stack is conn22(=conn01), because it has most # of
# active objectd # active objects
assert conn03 is conn01 assert conn03 is conn01
root03 = conn03.root() root03 = conn03.root()
......
/* Wendelin.bigfile | tests for real faults leading to crash /* Wendelin.bigfile | tests for real faults leading to crash
* Copyright (C) 2014-2015 Nexedi SA and Contributors. * Copyright (C) 2014-2019 Nexedi SA and Contributors.
* Kirill Smelkov <kirr@nexedi.com> * Kirill Smelkov <kirr@nexedi.com>
* *
* This program is free software: you can Use, Study, Modify and Redistribute * This program is free software: you can Use, Study, Modify and Redistribute
...@@ -144,7 +144,7 @@ void fault_in_storeblk() ...@@ -144,7 +144,7 @@ void fault_in_storeblk()
{ return 0; } { return 0; }
/* storeblk "incorrectly" accesses other protected memory which should be /* storeblk "incorrectly" accesses other protected memory which should be
* catched and SIGSEGV */ * caught and SIGSEGV */
int faulty_storeblk(BigFile *file, blk_t blk, const void *buf) int faulty_storeblk(BigFile *file, blk_t blk, const void *buf)
{ {
/* read page[1] - should crash here */ /* read page[1] - should crash here */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment