Cellular: not-supported error if MODEM_ON_BOARD not defined

If a test is empty, it leads to undef. Therefore if a test requires additional
details, it should print an error [NOT SUPPORTED].
pull/4672/head
Martin Kojtal 2017-06-30 09:56:17 +01:00
parent 9b082fff55
commit 334c02f7d4
1 changed files with 3 additions and 12 deletions

View File

@ -14,7 +14,9 @@
* limitations under the License. * limitations under the License.
*/ */
#if MODEM_ON_BOARD #if !MODEM_ON_BOARD
#error [NOT_SUPPORTED] MODEM_ON_BOARD should be set for this test to be functional
#endif
#include "mbed.h" #include "mbed.h"
#include "gmd_ut_config_header.h" #include "gmd_ut_config_header.h"
@ -436,14 +438,3 @@ static void unlock()
{ {
mtx.unlock(); mtx.unlock();
} }
#else
int main ()
{
return 0;
}
#endif //MODEM_ON_BOARD
// End Of File