Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
b8d42b90
Commit
b8d42b90
authored
Feb 20, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
54873d26
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
go/zodb/persistent_test.go
go/zodb/persistent_test.go
+16
-1
No files found.
go/zodb/persistent_test.go
View file @
b8d42b90
...
...
@@ -173,7 +173,22 @@ func TestPersistentBasic(t *testing.T) {
obj2
:=
&
Unregistered
{}
assert
.
Equal
(
ClassOf
(
obj2
),
`ZODB.Go("lab.nexedi.com/kirr/neo/go/zodb.Unregistered")`
)
// XXX deactivate refcnt < 0 - check error message (this verifies badf fix)
// deactivate refcnt < 0 -> panic
func
()
{
defer
func
()
{
r
:=
recover
()
if
r
==
nil
{
t
.
Fatal
(
"deactivate refcnt < 0: not panicked"
)
}
ehave
:=
fmt
.
Sprintf
(
"%s"
,
r
)
ewant
:=
fmt
.
Sprintf
(
"t.zodb.MyObject(%s): deactivate: refcnt < 0 (= -1)"
,
Oid
(
12
))
if
ehave
!=
ewant
{
t
.
Fatalf
(
"deactivate refcnt < 0: panic error unexpected:
\n
have: %q
\n
want: %q"
,
ehave
,
ewant
)
}
}()
obj
.
PDeactivate
()
}()
}
// zcacheControl is simple live cache control that prevents specified objects
...
...
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