BACKPORT: tests/: Add file path and flags validation to open() calls
With this change we add path and flag validation to many tests that do
not call open. Expected path is set to NULL, if the code indead calls
open then the assertion for non-NULL will make the test fail.
BUG=b:217629892,b:215255210
BRANCH=none
TEST=`ninja test`.
Original-Change-Id: I892fa1ecee26ebce9640893edbb228fa9aa7b0b6
Original-Signed-off-by: Edward O'Callaghan <quasisec@google.com>
Original-Co-Author: Daniel Campello <campello@chromium.org>
Original-Signed-off-by: Daniel Campello <campello@chromium.org>
Original-Reviewed-on: https://review.coreboot.org/c/flashrom/+/62320
Original-Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Original-Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
(cherry picked from commit 8abe12e86e9353fd8399e2e663bfc64a97ca5dfa)
Backport was to added LOCK_FILE to open() validation paths.
Change-Id: I006c7c649b377243693525881e9257ab26cc04ee
Signed-off-by: Edward O'Callaghan <quasisec@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/flashrom/+/3591513
Commit-Queue: Edward O'Callaghan <quasisec@chromium.org>
Tested-by: Edward O'Callaghan <quasisec@chromium.org>
Auto-Submit: Edward O'Callaghan <quasisec@chromium.org>
Reviewed-by: Daniel Campello <campello@chromium.org>
Commit-Queue: Daniel Campello <campello@chromium.org>
2 files changed