mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
Setup error handling modified
This commit is contained in:
parent
531850afc2
commit
7e22952c42
|
@ -160,17 +160,11 @@ absl::Status PffftMain() {
|
||||||
|
|
||||||
// PFFFT benchmark
|
// PFFFT benchmark
|
||||||
{
|
{
|
||||||
sapi::StatusOr<PFFFT_Setup*> s =
|
SAPI_ASSIGN_OR_RETURN(
|
||||||
api.pffft_new_setup(n, complex ? PFFFT_COMPLEX : PFFFT_REAL);
|
PFFFT_Setup *s,
|
||||||
|
api.pffft_new_setup(n, complex ? PFFFT_COMPLEX : PFFFT_REAL));
|
||||||
|
|
||||||
LOG(INFO) << "Setup status is: " << s.status().ToString();
|
sapi::v::RemotePtr s_reg(s);
|
||||||
|
|
||||||
if (!s.ok()) {
|
|
||||||
printf("Sandbox failed.\n");
|
|
||||||
return s.status();
|
|
||||||
}
|
|
||||||
|
|
||||||
sapi::v::RemotePtr s_reg(s.value());
|
|
||||||
|
|
||||||
t0 = UclockSec();
|
t0 = UclockSec();
|
||||||
for (int iter = 0; iter < max_iter; ++iter) {
|
for (int iter = 0; iter < max_iter; ++iter) {
|
||||||
|
@ -192,7 +186,7 @@ absl::Status PffftMain() {
|
||||||
LOG(INFO) << "n = " << n << " SUCCESSFULLY";
|
LOG(INFO) << "n = " << n << " SUCCESSFULLY";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return absl::OkStatus();
|
return absl::OkStatus();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user