mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
Replaced STL streams with LLVM's raw_ostream (#344)
std::cout and std::printf were replaced with llvm::outs() and std::cerr was replaced with llvm::errs().
This commit is contained in:
committed by
Peter Johnson
parent
c57a7f0a41
commit
9d93820717
@@ -12,6 +12,7 @@
|
||||
#include "LiveWindow/LiveWindow.h"
|
||||
#include "Timer.h"
|
||||
#include "gtest/gtest.h"
|
||||
#include "llvm/raw_ostream.h"
|
||||
|
||||
using namespace frc;
|
||||
|
||||
@@ -26,7 +27,7 @@ class TestEnvironment : public testing::Environment {
|
||||
m_alreadySetUp = true;
|
||||
|
||||
if (!HAL_Initialize(0)) {
|
||||
std::cerr << "FATAL ERROR: HAL could not be initialized" << std::endl;
|
||||
llvm::errs() << "FATAL ERROR: HAL could not be initialized\n";
|
||||
std::exit(-1);
|
||||
}
|
||||
|
||||
@@ -37,7 +38,7 @@ class TestEnvironment : public testing::Environment {
|
||||
HAL_ObserveUserProgramStarting();
|
||||
LiveWindow::GetInstance()->SetEnabled(false);
|
||||
|
||||
std::cout << "Waiting for enable" << std::endl;
|
||||
llvm::outs() << "Waiting for enable\n";
|
||||
|
||||
while (!DriverStation::GetInstance().IsEnabled()) {
|
||||
Wait(0.1);
|
||||
|
||||
Reference in New Issue
Block a user