diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2017-02-23 02:06:22 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2017-02-23 02:09:15 +0000 |
commit | 5d037bd140eca13e1b71b9eaea80cea766b85965 (patch) | |
tree | e709cbfbe87da3d9d3d1a8073be690e081a9bd7d /tests | |
parent | c5da0662d1c0dd92bbaf307b6c35449c0c598300 (diff) |
igt/drv_hangman: Clear the error state by actually writing to sysfs
The call to igt_sysfs_set("") was trying to write the empty string, i.e.
0 bytes and so never made it to the kernel. Use igt_sysfs_write("", 1)
instead to send the NUL byte to the error state in order for it to be
cleared.
Reported-by: Michel Thierry <michel.thierry@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/drv_hangman.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/drv_hangman.c b/tests/drv_hangman.c index ca6c7c1e..bc20e70b 100644 --- a/tests/drv_hangman.c +++ b/tests/drv_hangman.c @@ -77,7 +77,7 @@ static void assert_error_state_collected(void) static void clear_error_state(void) { - igt_sysfs_set(sysfs, "error", ""); + igt_sysfs_write(sysfs, "error", "", 1); } static void test_error_state_basic(void) |