mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-03 01:17:45 +03:00
test-boot-timestamp: Handle ERANGE error
Timestampfs from sysfs files can be zero in which case ERANGE will be returned so let's make sure we catch that. (cherry picked from commit0da4cc97b4
) (cherry picked from commitef96e60f18
) (cherry picked from commit18a2aaf2f6
)
This commit is contained in:
parent
1b7b67d22a
commit
2b068e24ba
@ -16,7 +16,7 @@ static int test_acpi_fpdt(void) {
|
||||
|
||||
r = acpi_get_boot_usec(&loader_start, &loader_exit);
|
||||
if (r < 0) {
|
||||
bool ok = r == -ENOENT || r == -EACCES || r == -ENODATA;
|
||||
bool ok = r == -ENOENT || r == -EACCES || r == -ENODATA || r == -ERANGE;
|
||||
|
||||
log_full_errno(ok ? LOG_DEBUG : LOG_ERR, r, "Failed to read ACPI FPDT: %m");
|
||||
return ok ? 0 : r;
|
||||
|
Loading…
Reference in New Issue
Block a user