File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,9 @@ cc_test(
3636cc_test (
3737    name  =  "all_tests" ,
3838    srcs  =  glob (["*_test.cc" ]),
39+     copts  =  [
40+         "-DUNIT_TESTING" ,
41+     ],
3942    tags  =  [
4043        "metrics" ,
4144        "test" ,
@@ -44,9 +47,6 @@ cc_test(
4447        "metrics_common_test_utils" ,
4548        "@com_google_googletest//:gtest_main" ,
4649    ],
47-     copts  =  [
48-         "-DUNIT_TESTING" ,
49-     ],
5050)
5151
5252otel_cc_benchmark (
Original file line number Diff line number Diff line change @@ -38,8 +38,7 @@ foreach(
3838  target_link_libraries (
3939    ${testname}  ${GTEST_BOTH_LIBRARIES}  ${CMAKE_THREAD_LIBS_INIT} 
4040    metrics_common_test_utils opentelemetry_resources)
41-   target_compile_definitions (${testname}  PRIVATE 
42-                              UNIT_TESTING)
41+   target_compile_definitions (${testname}  PRIVATE  UNIT_TESTING)
4342  gtest_add_tests(
4443    TARGET  ${testname} 
4544    TEST_PREFIX metrics.
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments