-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests/core/irq_cpp: remove irq.h override
- Loading branch information
1 parent
1eb6667
commit 78413fe
Showing
2 changed files
with
12 additions
and
33 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,18 +16,27 @@ | |
* @author Jens Wetterich <[email protected]> | ||
*/ | ||
|
||
#include <stdbool.h> | ||
|
||
/* prevent the inclusion of irq.h on irq.hpp */ | ||
#define IRQ_H | ||
unsigned irq_disable(void); | ||
unsigned irq_enable(void); | ||
bool irq_is_enabled(void); | ||
bool irq_is_in(void); | ||
void irq_restore(unsigned state); | ||
|
||
#define FFF_ARG_HISTORY_LEN 1u | ||
#define FFF_CALL_HISTORY_LEN 1u | ||
#include "cppunit.hpp" | ||
#include "fff.h" | ||
#include "irq.h" | ||
#include "irq.hpp" | ||
DEFINE_FFF_GLOBALS | ||
|
||
FAKE_VALUE_FUNC(unsigned, irq_disable) | ||
FAKE_VALUE_FUNC(unsigned, irq_enable) | ||
FAKE_VALUE_FUNC(int, irq_is_enabled) | ||
FAKE_VALUE_FUNC(int, irq_is_in) | ||
FAKE_VALUE_FUNC(bool, irq_is_enabled) | ||
FAKE_VALUE_FUNC(bool, irq_is_in) | ||
FAKE_VOID_FUNC(irq_restore, unsigned) | ||
|
||
class irq_suite : public riot::testing::test_suite { | ||
|