Skip to content

Commit

Permalink
Enabled TestRainGaugeReal
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias-bs committed Aug 15, 2023
1 parent af8d9a2 commit db8a420
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 3 additions & 3 deletions test/makefiles/Makefile_Tests.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ SRC_FILES = \
$(PROJECT_SRC_DIR)/Lightning.cpp

TEST_SRC_FILES = \
$(UNITTEST_SRC_DIR)/TestRainGauge.c \
$(UNITTEST_SRC_DIR)/TestLightning.cpp
#$(UNITTEST_SRC_DIR)/TestRainGaugeReal.c #\
$(UNITTEST_SRC_DIR)/TestRainGauge.cpp \
$(UNITTEST_SRC_DIR)/TestLightning.cpp \
$(UNITTEST_SRC_DIR)/TestRainGaugeReal.cpp
#$(UNITTEST_SRC_DIR)/TestRainGauge.c

include $(CPPUTEST_MAKFILE_INFRA)
6 changes: 2 additions & 4 deletions test/src/TestRainGaugeReal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@
#endif



static RainGauge rainGauge;

/**
* \example
* struct tm tm;
Expand All @@ -77,7 +74,6 @@ static void setTime(const char *time, tm &tm, time_t &ts)

TEST_GROUP(TestRainGaugePotteryFields) {
void setup() {
rainGauge.reset();
}

void teardown() {
Expand All @@ -89,6 +85,8 @@ TEST_GROUP(TestRainGaugePotteryFields) {
* Test rainfall during past hour (no rain gauge overflow)
*/
TEST(TestRainGaugePotteryFields, Test_PotteryFields) {
static RainGauge rainGauge;
rainGauge.reset();
tm tm;
time_t ts;

Expand Down

0 comments on commit db8a420

Please sign in to comment.