Anastasia Klimchuk has uploaded this change for review.

View Change

tests: Move LOG_ME to include/tests.h to be available everywhere

LOG_ME macro is very generic and can be useful anywhere in tests.
Previously was only used in scope of tests.c. With time more tests
are added, and more files, LOG_ME needs to be visible everywhere.

BUG=b:181803212
TEST=builds and ninja test

Change-Id: If7f3d256161bc8b81e996328e445cccab9a82174
Signed-off-by: Anastasia Klimchuk <aklm@chromium.org>
---
M tests/include/test.h
M tests/tests.c
2 files changed, 2 insertions(+), 3 deletions(-)

git pull ssh://review.coreboot.org:29418/flashrom refs/changes/14/57914/1
diff --git a/tests/include/test.h b/tests/include/test.h
index 24fa963..dc1de22 100644
--- a/tests/include/test.h
+++ b/tests/include/test.h
@@ -27,4 +27,6 @@
#include <setjmp.h>
#include <cmocka.h>

+#define LOG_ME printf("%s is called\n", __func__)
+
#endif /* _TESTS_TEST_H */
diff --git a/tests/tests.c b/tests/tests.c
index f9490eb..72beb83 100644
--- a/tests/tests.c
+++ b/tests/tests.c
@@ -21,9 +21,6 @@
#include <string.h>
#include <stdint.h>

-/* redefinitions/wrapping */
-#define LOG_ME printf("%s is called\n", __func__)
-
static const struct io_mock *current_io = NULL;

void io_mock_register(const struct io_mock *io)

To view, visit change 57914. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: If7f3d256161bc8b81e996328e445cccab9a82174
Gerrit-Change-Number: 57914
Gerrit-PatchSet: 1
Gerrit-Owner: Anastasia Klimchuk <aklm@chromium.org>
Gerrit-MessageType: newchange