Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
boinc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
einsteinathome
boinc
Commits
b2c9ab13
Commit
b2c9ab13
authored
10 years ago
by
Rom Walton
Browse files
Options
Downloads
Patches
Plain Diff
VBOX: Make the conditions for one type of error case a bit clearer.
parent
017ac68c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
samples/vboxwrapper/vbox_common.cpp
+5
-0
5 additions, 0 deletions
samples/vboxwrapper/vbox_common.cpp
samples/vboxwrapper/vbox_common.h
+1
-0
1 addition, 0 deletions
samples/vboxwrapper/vbox_common.h
samples/vboxwrapper/vboxwrapper.cpp
+1
-1
1 addition, 1 deletion
samples/vboxwrapper/vboxwrapper.cpp
with
7 additions
and
1 deletion
samples/vboxwrapper/vbox_common.cpp
+
5
−
0
View file @
b2c9ab13
...
...
@@ -420,6 +420,11 @@ bool VBOX_BASE::is_logged_failure_vm_extensions_not_supported() {
return
false
;
}
bool
VBOX_BASE
::
is_logged_failure_vm_powerup
()
{
if
(
vm_log
.
find
(
"Power up failed (vrc=VINF_SUCCESS, rc=E_FAIL (0X80004005))"
)
!=
string
::
npos
)
return
true
;
return
false
;
}
bool
VBOX_BASE
::
is_logged_failure_host_out_of_memory
()
{
if
(
vm_log
.
find
(
"VERR_EM_NO_MEMORY"
)
!=
string
::
npos
)
return
true
;
if
(
vm_log
.
find
(
"VERR_NO_MEMORY"
)
!=
string
::
npos
)
return
true
;
...
...
This diff is collapsed.
Click to expand it.
samples/vboxwrapper/vbox_common.h
+
1
−
0
View file @
b2c9ab13
...
...
@@ -278,6 +278,7 @@ public:
virtual
bool
is_logged_failure_vm_extensions_disabled
();
virtual
bool
is_logged_failure_vm_extensions_in_use
();
virtual
bool
is_logged_failure_vm_extensions_not_supported
();
virtual
bool
is_logged_failure_vm_powerup
();
virtual
bool
is_logged_failure_host_out_of_memory
();
virtual
bool
is_logged_failure_guest_job_out_of_memory
();
virtual
bool
is_virtualbox_version_newer
(
int
maj
,
int
min
,
int
rel
);
...
...
This diff is collapsed.
Click to expand it.
samples/vboxwrapper/vboxwrapper.cpp
+
1
−
1
View file @
b2c9ab13
...
...
@@ -1165,7 +1165,7 @@ int main(int argc, char** argv) {
pVM
->
poll
(
true
);
// Did we timeout?
if
(
timeout
<=
dtime
())
{
if
(
!
pVM
->
online
&&
(
timeout
<=
dtime
())
)
{
vboxwrapper_msg_prefix
(
buf
,
sizeof
(
buf
));
fprintf
(
stderr
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment