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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
wendelin.core
Commits
e5e9557b
Commit
e5e9557b
authored
Jul 10, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bigfile/tests: Fix typos
parent
82383d1e
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
16 deletions
+16
-16
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/test_virtmem.c
bigfile/tests/test_virtmem.c
+3
-3
bigfile/tests/tfault.c
bigfile/tests/tfault.c
+2
-2
No files found.
bigfile/tests/test_basic.py
View file @
e5e9557b
# 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 @
e5e9557b
# 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 @
e5e9557b
# 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/test_virtmem.c
View file @
e5e9557b
...
...
@@ -193,7 +193,7 @@ const char *__asan_default_options()
return
"allow_user_segv_handler=1"
;
}
/* tell TSAN we are OK with calling async-sig-unsafe fu
c
nctions from sync SIGSEGV */
/* tell TSAN we are OK with calling async-sig-unsafe functions from sync SIGSEGV */
const
char
*
__tsan_default_options
()
{
return
"report_signal_unsafe=0"
;
...
...
@@ -217,7 +217,7 @@ int M(VMA *vma, pgoff_t idx) { return bitmap_test_bit(vma->page_ismappedv, idx)
ok1((page)->refcnt == (pgrefcnt)); \
} while (0)
/* check that fileh->pagemap[pg
fos
set] is empty */
/* check that fileh->pagemap[pg
off
set] is empty */
#define __CHECK_NOPAGE(fileh, pgoffset) do { \
ok1(!pagemap_get(&(fileh)->pagemap, (pgoffset))); \
} while (0)
...
...
@@ -1063,7 +1063,7 @@ void test_pagefault_savestate()
{
/* we are bad file - just say everything is ok... */
/* and before that corrup thread state - to verify that pagefault handler
/* and before that corrup
t
thread state - to verify that pagefault handler
* will restore it. */
errno
=
98
;
/* Also tell we were here via, so that the test can be sure we actually
...
...
bigfile/tests/tfault.c
View file @
e5e9557b
/* 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