Skip to content

Check of supported peripheral/function in main.cpp test files are misplaced #1610

Closed
@bcostm

Description

@bcostm

In all the test files (for example in mbed/libraries/tests/mbed/rtc/main.cpp),
where the peripheral/function is checked, the check of the peripheral/function must be placed after the includes:

Today it is:

#if !DEVICE_RTC
  #error [NOT_SUPPORTED] RTC is not supported
#endif
#include "mbed.h"
#include "test_env.h"

While it must be:

#include "mbed.h"
#include "test_env.h"
#if !DEVICE_RTC
  #error [NOT_SUPPORTED] RTC is not supported
#endif

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions