summaryrefslogtreecommitdiff
path: root/test/stress.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/stress.c')
-rw-r--r--test/stress.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/stress.c b/test/stress.c
index 72c5b75ced..18e15eafb9 100644
--- a/test/stress.c
+++ b/test/stress.c
@@ -78,7 +78,7 @@ static int stress(const char *name,
/*****************************************************************************/
/* Tests */
-#if defined(CONFIG_I2C) && !defined(CONFIG_I2C_SLAVE_ONLY)
+#ifdef CONFIG_I2C_MASTER
static int test_i2c(void)
{
int res = EC_ERROR_UNKNOWN;
@@ -135,7 +135,7 @@ void run_test(void)
{
test_reset();
-#if defined(CONFIG_I2C) && !defined(CONFIG_I2C_SLAVE_ONLY)
+#ifdef CONFIG_I2C_MASTER
RUN_STRESS_TEST("I2C Stress Test", test_i2c, I2C_TEST_ITERATION);
#endif
#ifdef CONFIG_ADC