summaryrefslogtreecommitdiff
path: root/tests/pm_lpsp.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pm_lpsp.c')
-rw-r--r--tests/pm_lpsp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/pm_lpsp.c b/tests/pm_lpsp.c
index 50b3dd9c..3ed4c788 100644
--- a/tests/pm_lpsp.c
+++ b/tests/pm_lpsp.c
@@ -45,12 +45,12 @@ static void disable_audio_runtime_pm(void)
fd = open("/sys/module/snd_hda_intel/parameters/power_save", O_WRONLY);
if (fd >= 0) {
- write(fd, "1\n", 2);
+ igt_assert_eq(write(fd, "1\n", 2), 2);
close(fd);
}
fd = open("/sys/bus/pci/devices/0000:00:03.0/power/control", O_WRONLY);
if (fd >= 0) {
- write(fd, "auto\n", 5);
+ igt_assert_eq(write(fd, "auto\n", 5), 5);
close(fd);
}
/* Give some time for it to react. */