mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
[wpilibc] Clean up integration tests (#3400)
The command and shuffleboard integration tests were removed because their unit tests counterparts already provide adequate coverage. Java already removed these.
This commit is contained in:
@@ -4,14 +4,12 @@
|
||||
|
||||
#include "frc/Notifier.h" // NOLINT(build/include_order)
|
||||
|
||||
#include <wpi/raw_ostream.h>
|
||||
#include <fmt/core.h>
|
||||
|
||||
#include "TestBench.h"
|
||||
#include "frc/Timer.h"
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
using namespace frc;
|
||||
|
||||
unsigned notifierCounter;
|
||||
|
||||
void notifierHandler(void*) {
|
||||
@@ -22,21 +20,20 @@ void notifierHandler(void*) {
|
||||
* Test if the Wait function works
|
||||
*/
|
||||
TEST(NotifierTest, DISABLED_TestTimerNotifications) {
|
||||
wpi::outs() << "NotifierTest...\n";
|
||||
fmt::print("NotifierTest...\n");
|
||||
notifierCounter = 0;
|
||||
wpi::outs() << "notifier(notifierHandler, nullptr)...\n";
|
||||
Notifier notifier(notifierHandler, nullptr);
|
||||
wpi::outs() << "Start Periodic...\n";
|
||||
fmt::print("notifier(notifierHandler, nullptr)...\n");
|
||||
frc::Notifier notifier(notifierHandler, nullptr);
|
||||
fmt::print("Start Periodic...\n");
|
||||
notifier.StartPeriodic(1_s);
|
||||
|
||||
wpi::outs() << "Wait...\n";
|
||||
Wait(10.5_s);
|
||||
wpi::outs() << "...Wait\n";
|
||||
fmt::print("Wait...\n");
|
||||
frc::Wait(10.5_s);
|
||||
fmt::print("...Wait\n");
|
||||
|
||||
EXPECT_EQ(10u, notifierCounter)
|
||||
<< "Received " << notifierCounter << " notifications in 10.5 seconds";
|
||||
wpi::outs() << "Received " << notifierCounter
|
||||
<< " notifications in 10.5 seconds";
|
||||
fmt::print("Received {} notifications in 10.5 seconds", notifierCounter);
|
||||
|
||||
wpi::outs() << "...NotifierTest\n";
|
||||
fmt::print("...NotifierTest\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user