rely solely on the SetStderrLogLevel function call instead of manually passing in -v flag
This commit is contained in:
parent
3449f2dfb7
commit
a7aae5fc3c
@ -97,18 +97,6 @@ function(vtkm_unit_tests)
|
||||
set(test_prog "UnitTests_${kit}")
|
||||
endif()
|
||||
|
||||
# For Testing Purposes, we will set the default logging level to INFO
|
||||
if(VTKm_UT_TEST_ARGS)
|
||||
list(FIND VTKm_UT_TEST_ARGS "-v" index)
|
||||
if(index EQUAL -1)
|
||||
list(APPEND VTKm_UT_TEST_ARGS "-v" "INFO")
|
||||
else()
|
||||
message(STATUS "Test manually supplied the logging level, not overriding")
|
||||
endif()
|
||||
else()
|
||||
list(APPEND VTKm_UT_TEST_ARGS "-v" "INFO")
|
||||
endif()
|
||||
|
||||
if(VTKm_UT_MPI)
|
||||
# for MPI tests, suffix test name and add MPI_Init/MPI_Finalize calls.
|
||||
set(test_prog "${test_prog}_mpi")
|
||||
|
@ -22,7 +22,7 @@
|
||||
#include <vtkm/Types.h>
|
||||
#include <vtkm/VecTraits.h>
|
||||
|
||||
#include <vtkm/cont/Initialize.h>
|
||||
#include <vtkm/cont/Logging.h>
|
||||
|
||||
#include <exception>
|
||||
#include <iostream>
|
||||
@ -317,7 +317,7 @@ public:
|
||||
static VTKM_CONT int Run(Func function, int argc, char* argv[])
|
||||
{
|
||||
|
||||
vtkm::cont::Initialize(argc, argv);
|
||||
vtkm::cont::InitLogging(argc, argv);
|
||||
|
||||
try
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user