Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Joshua
wendelin.core
Commits
487a7160
Commit
487a7160
authored
Jul 10, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into t
* master: bigfile/tests: Fix typos
parents
e211dd41
e5e9557b
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
13 deletions
+13
-13
bigfile/tests/test_basic.py
bigfile/tests/test_basic.py
+3
-3
bigfile/tests/test_filefile.py
bigfile/tests/test_filefile.py
+2
-2
bigfile/tests/test_filezodb.py
bigfile/tests/test_filezodb.py
+6
-6
bigfile/tests/tfault.c
bigfile/tests/tfault.c
+2
-2
No files found.
bigfile/tests/test_basic.py
View file @
487a7160
# Wendelin
g
.core.bigfile | Basic tests
# Copyright (C) 2014-201
5
Nexedi SA and Contributors.
# Wendelin.core.bigfile | Basic tests
# Copyright (C) 2014-201
9
Nexedi SA and Contributors.
# Kirill Smelkov <kirr@nexedi.com>
#
# This program is free software: you can Use, Study, Modify and Redistribute
...
...
@@ -370,7 +370,7 @@ class GCBigFile(DelBigFile):
self
.
obj_4del
=
None
assert
w
()
is
not
None
# del a=b cycle - it should stay ali
c
e, while gc is disabled
# del a=b cycle - it should stay ali
v
e, while gc is disabled
gc_save
=
gc
.
isenabled
()
gc
.
disable
()
...
...
bigfile/tests/test_filefile.py
View file @
487a7160
# Wendelin
g
.core.bigfile | Tests for BigFile_File
# Copyright (C) 2014-201
5
Nexedi SA and Contributors.
# Wendelin.core.bigfile | Tests for BigFile_File
# Copyright (C) 2014-201
9
Nexedi SA and Contributors.
# Kirill Smelkov <kirr@nexedi.com>
#
# This program is free software: you can Use, Study, Modify and Redistribute
...
...
bigfile/tests/test_filezodb.py
View file @
487a7160
# Wendelin
g
.core.bigfile | Tests for ZODB BigFile backend
# Copyright (C) 2014-201
5
Nexedi SA and Contributors.
# Wendelin.core.bigfile | Tests for ZODB BigFile backend
# Copyright (C) 2014-201
9
Nexedi SA and Contributors.
# Kirill Smelkov <kirr@nexedi.com>
#
# This program is free software: you can Use, Study, Modify and Redistribute
...
...
@@ -396,7 +396,7 @@ def test_bigfile_filezodb_vs_conn_migration():
wait
(
'T2-zfile2-modified'
)
# XXX do we want to also modify some other obje
sct
?
# XXX do we want to also modify some other obje
cts
?
# (but this have side effect for joining conn11_2 to txn)
transaction
.
commit
()
# should be nothing
tell
(
'T1-txn12-committed'
)
...
...
@@ -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
conn02
=
db
.
open
()
# NOTE top of connection stack is conn21(=conn01), becase conn11_2 has 0
# NOTE top of connection stack is conn21(=conn01), beca
u
se conn11_2 has 0
# active objects
assert
conn02
is
conn01
root02
=
conn02
.
root
()
...
...
@@ -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
conn03
=
db
.
open
()
# NOTE top of connection stack is conn22(=conn01), becase it has most # of
# active object
d
# NOTE top of connection stack is conn22(=conn01), beca
u
se it has most # of
# active object
s
assert
conn03
is
conn01
root03
=
conn03
.
root
()
...
...
bigfile/tests/tfault.c
View file @
487a7160
/* Wendelin.bigfile | tests for real faults leading to crash
* Copyright (C) 2014-201
5
Nexedi SA and Contributors.
* Copyright (C) 2014-201
9
Nexedi SA and Contributors.
* Kirill Smelkov <kirr@nexedi.com>
*
* This program is free software: you can Use, Study, Modify and Redistribute
...
...
@@ -144,7 +144,7 @@ void fault_in_storeblk()
{
return
0
;
}
/* storeblk "incorrectly" accesses other protected memory which should be
* ca
tched
and SIGSEGV */
* ca
ught
and SIGSEGV */
int
faulty_storeblk
(
BigFile
*
file
,
blk_t
blk
,
const
void
*
buf
)
{
/* read page[1] - should crash here */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment