Skip to content

Commit 78413fe

Browse files
tests/core/irq_cpp: remove irq.h override
1 parent 1eb6667 commit 78413fe

File tree

2 files changed

+12
-33
lines changed

2 files changed

+12
-33
lines changed

tests/core/irq_cpp/irq.h

Lines changed: 0 additions & 30 deletions
This file was deleted.

tests/core/irq_cpp/main.cpp

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,27 @@
1616
* @author Jens Wetterich <[email protected]>
1717
*/
1818

19+
#include <stdbool.h>
20+
21+
/* prevent the inclusion of irq.h on irq.hpp */
22+
#define IRQ_H
23+
unsigned irq_disable(void);
24+
unsigned irq_enable(void);
25+
bool irq_is_enabled(void);
26+
bool irq_is_in(void);
27+
void irq_restore(unsigned state);
28+
1929
#define FFF_ARG_HISTORY_LEN 1u
2030
#define FFF_CALL_HISTORY_LEN 1u
2131
#include "cppunit.hpp"
2232
#include "fff.h"
23-
#include "irq.h"
2433
#include "irq.hpp"
2534
DEFINE_FFF_GLOBALS
2635

2736
FAKE_VALUE_FUNC(unsigned, irq_disable)
2837
FAKE_VALUE_FUNC(unsigned, irq_enable)
29-
FAKE_VALUE_FUNC(int, irq_is_enabled)
30-
FAKE_VALUE_FUNC(int, irq_is_in)
38+
FAKE_VALUE_FUNC(bool, irq_is_enabled)
39+
FAKE_VALUE_FUNC(bool, irq_is_in)
3140
FAKE_VOID_FUNC(irq_restore, unsigned)
3241

3342
class irq_suite : public riot::testing::test_suite {

0 commit comments

Comments
 (0)