The direct_access_devicekey test should not run if there is no component flashiap block device in the target

pull/9215/head
Yossi Levy 2019-01-08 18:50:58 +02:00 committed by offirko
parent 6592e85c13
commit 423c4fbc18
1 changed files with 4 additions and 5 deletions

View File

@ -15,6 +15,10 @@
* limitations under the License. * limitations under the License.
*/ */
#ifndef COMPONENT_FLASHIAP
#error [NOT_SUPPORTED] Target must have internal FlashIAP for this test
#endif
#include "mbed.h" #include "mbed.h"
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
@ -31,11 +35,6 @@
#include "utest.h" #include "utest.h"
#include <stdlib.h> #include <stdlib.h>
#ifndef DEVICE_FLASH
#error [NOT_SUPPORTED] Target must have internal FlashIAP for this test
#endif
using namespace utest::v1; using namespace utest::v1;
using namespace mbed; using namespace mbed;