Commit e5e9557b authored by Kirill Smelkov's avatar Kirill Smelkov

bigfile/tests: Fix typos

parent 82383d1e
# 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()
......
...@@ -193,7 +193,7 @@ const char *__asan_default_options() ...@@ -193,7 +193,7 @@ const char *__asan_default_options()
return "allow_user_segv_handler=1"; return "allow_user_segv_handler=1";
} }
/* tell TSAN we are OK with calling async-sig-unsafe fucnctions from sync SIGSEGV */ /* tell TSAN we are OK with calling async-sig-unsafe functions from sync SIGSEGV */
const char *__tsan_default_options() const char *__tsan_default_options()
{ {
return "report_signal_unsafe=0"; return "report_signal_unsafe=0";
...@@ -217,7 +217,7 @@ int M(VMA *vma, pgoff_t idx) { return bitmap_test_bit(vma->page_ismappedv, idx) ...@@ -217,7 +217,7 @@ int M(VMA *vma, pgoff_t idx) { return bitmap_test_bit(vma->page_ismappedv, idx)
ok1((page)->refcnt == (pgrefcnt)); \ ok1((page)->refcnt == (pgrefcnt)); \
} while (0) } while (0)
/* check that fileh->pagemap[pgfosset] is empty */ /* check that fileh->pagemap[pgoffset] is empty */
#define __CHECK_NOPAGE(fileh, pgoffset) do { \ #define __CHECK_NOPAGE(fileh, pgoffset) do { \
ok1(!pagemap_get(&(fileh)->pagemap, (pgoffset))); \ ok1(!pagemap_get(&(fileh)->pagemap, (pgoffset))); \
} while (0) } while (0)
...@@ -1063,7 +1063,7 @@ void test_pagefault_savestate() ...@@ -1063,7 +1063,7 @@ void test_pagefault_savestate()
{ {
/* we are bad file - just say everything is ok... */ /* we are bad file - just say everything is ok... */
/* and before that corrup thread state - to verify that pagefault handler /* and before that corrupt thread state - to verify that pagefault handler
* will restore it. */ * will restore it. */
errno = 98; errno = 98;
/* Also tell we were here via, so that the test can be sure we actually /* Also tell we were here via, so that the test can be sure we actually
......
/* 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