Skip to content

Commit cbccf6a

Browse files
committed
Don't test SFR on non-AVR
1 parent 7804730 commit cbccf6a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: SampleProjects/TestSomething/test/defines.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ unittest(binary)
88
assertEqual(100, B1100100);
99
}
1010

11+
#ifdef __AVR__
1112
#define DDRE _SFR_IO8(0x02)
1213

1314
unittest(SFR_IO8)
@@ -18,5 +19,6 @@ unittest(SFR_IO8)
1819
// this tests that directly
1920
auto foo = &DDRE; // avoid compiler warning by using the result of an expression
2021
}
22+
#endif
2123

2224
unittest_main()

0 commit comments

Comments
 (0)