summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorEvan Benn <evanbenn@chromium.org>2022-11-15 14:57:27 +1100
committerEdward O'Callaghan <quasisec@chromium.org>2022-11-28 11:42:07 +0000
commitde016a17f25c71b4688781c7ca1b611cb9681694 (patch)
tree33397c021dc22a0309193cef180771668a3dcef5 /tests
parent8edd60e6c2dce047cfb120eadaedbea1bed4560d (diff)
downloadflashrom-de016a17f25c71b4688781c7ca1b611cb9681694.tar.gz
flashrom-de016a17f25c71b4688781c7ca1b611cb9681694.tar.bz2
flashrom-de016a17f25c71b4688781c7ca1b611cb9681694.zip
tests: Move SKIP_TEST macro to common header
BUG=None BRANCH=None TEST=None Change-Id: I6cca635212867dad5a8e391a46b1d943530c539a Signed-off-by: Evan Benn <evanbenn@chromium.org> Reviewed-on: https://review.coreboot.org/c/flashrom/+/69621 Reviewed-by: Edward O'Callaghan <quasisec@chromium.org> Reviewed-by: Anastasia Klimchuk <aklm@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/include/test.h3
-rw-r--r--tests/lifecycle.h3
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/include/test.h b/tests/include/test.h
index 88ac16d93..ef0b9a6f6 100644
--- a/tests/include/test.h
+++ b/tests/include/test.h
@@ -31,6 +31,9 @@
#define MOCK_FD (0x10ec)
+#define SKIP_TEST(name) \
+ void name (void **state) { skip(); }
+
/*
* Having this as function allows to set a breakpoint on the address,
* as it has a named symbol associated with the address number.
diff --git a/tests/lifecycle.h b/tests/lifecycle.h
index 69f111969..b4c2fbedd 100644
--- a/tests/lifecycle.h
+++ b/tests/lifecycle.h
@@ -28,9 +28,6 @@
#include "programmer.h"
#include "spi.h"
-#define SKIP_TEST(name) \
- void name (void **state) { skip(); }
-
void run_basic_lifecycle(void **state, const struct io_mock *io,
const struct programmer_entry *prog, const char *param);