diff options
Diffstat (limited to 'meta-selftest')
| -rw-r--r-- | meta-selftest/recipes-test/poison/poison.bb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/meta-selftest/recipes-test/poison/poison.bb b/meta-selftest/recipes-test/poison/poison.bb new file mode 100644 index 0000000000..7ace901cc3 --- /dev/null +++ b/meta-selftest/recipes-test/poison/poison.bb | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | SUMMARY = "Sysroot poisoning test" | ||
| 2 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" | ||
| 3 | |||
| 4 | LICENSE = "MIT" | ||
| 5 | |||
| 6 | inherit nopackages | ||
| 7 | |||
| 8 | # This test confirms that compiling code that searches /usr/include for headers | ||
| 9 | # will result in compiler errors. This recipe should will fail to build and | ||
| 10 | # oe-selftest has a test that verifies that. | ||
| 11 | do_compile() { | ||
| 12 | touch empty.c | ||
| 13 | ${CPP} ${CFLAGS} -I/usr/include empty.c | ||
| 14 | } | ||
| 15 | |||
| 16 | EXCLUDE_FROM_WORLD = "1" | ||
