diff options
author | Jakub Kicinski <kuba@kernel.org> | 2022-12-14 18:01:01 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-12-16 10:21:36 +0000 |
commit | 2fc60e2ff972d3dca836bff0b08cbe503c4ca1ce (patch) | |
tree | a214fc363d8a860966f62588daf1101820d23f16 /lib/pm-notifier-error-inject.c | |
parent | b4cafb3d2c740f8d1b1234b43ac4a60e5291c960 (diff) |
selftests: devlink: fix the fd redirect in dummy_reporter_test
$number + > bash means redirect FD $number, e.g. commonly
used 2> redirects stderr (fd 2). The test uses 8192> to
write the number 8192 to a file, this results in:
./devlink.sh: line 499: 8192: Bad file descriptor
Oddly the test also papers over this issue by checking
for failure (expecting an error rather than success)
so it passes, anyway.
Fixes: ff18176ad806 ("selftests: Add a test of large binary to devlink health test")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/pm-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions