Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
xcap
libcap
Commits
8fdd7f17
Commit
8fdd7f17
authored
Nov 17, 2015
by
Josh Kunz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix critical errors in the test programs
parent
76251ba7
Pipeline
#138
failed with stage
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
test/user/cap-stuff.c
test/user/cap-stuff.c
+2
-2
test/user/multi_thrd_cap.c
test/user/multi_thrd_cap.c
+1
-1
No files found.
test/user/cap-stuff.c
View file @
8fdd7f17
...
...
@@ -272,7 +272,7 @@ int get_cnode(struct cspace *csp, cptr_t sslot) {
/*
* Capability Revoke
*/
int
revoke
(
struct
cspace
*
csp
,
cptr_t
sslot
,
struct
cptr_cache
*
scache
)
{
int
do_
revoke
(
struct
cspace
*
csp
,
cptr_t
sslot
,
struct
cptr_cache
*
scache
)
{
int
ret
=
0
;
ret
=
cap_revoke
(
csp
,
sslot
);
...
...
@@ -348,7 +348,7 @@ int testcase_revoke() {
ret
=
grant
(
scsp
,
dcsp
,
sslot
,
dslot
);
if
(
ret
<
0
)
goto
fail2
;
ret
=
revoke
(
scsp
,
sslot
,
scache
);
ret
=
do_
revoke
(
scsp
,
sslot
,
scache
);
if
(
ret
<
0
)
goto
fail2
;
ret
=
cap_cnode_verify
(
dcsp
,
dslot
);
...
...
test/user/multi_thrd_cap.c
View file @
8fdd7f17
...
...
@@ -133,7 +133,7 @@ void *thread1_func(void *arg)
}
fail:
return
;
return
NULL
;
}
void
*
thread_revoke
(
void
*
arg
)
...
...
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