File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ ubuntu:
6868      metrics : build/metrics.txt 
6969  parallel :
7070    matrix :
71-       - IMAGE  : [ "ubuntu:22 .04" ] 
71+       - IMAGE  : [ "ubuntu:24 .04" ] 
7272        CXX : [ g++ ] 
7373        BUILD_TYPE  : [ "RelWithDebInfo" ] 
7474        TA_PYTHON  : [ "TA_PYTHON=OFF" ] 
Original file line number Diff line number Diff line change 2727#include  " tiledarray.h" 
2828#include  " unit_test_config.h" 
2929
30- const  TensorFixture::range_type TensorFixture::r = make_range(81 );
31- 
3230BOOST_FIXTURE_TEST_SUITE (tensor_suite, TensorFixture, TA_UT_LABEL_SERIAL)
3331
3432BOOST_AUTO_TEST_CASE(anatomy) {
Original file line number Diff line number Diff line change @@ -41,9 +41,11 @@ struct TensorFixture {
4141  typedef  TensorN::range_type::index_view_type index_view_type;
4242  typedef  TensorN::range_type range_type;
4343
44-   static   const  range_type r;
44+   const  range_type r;
4545
46-   TensorFixture () : t(r) { rand_fill (18 , t.size (), t.data ()); }
46+   TensorFixture () : r(make_range(81 )), t(r) {
47+     rand_fill (18 , t.size (), t.data ());
48+   }
4749
4850  ~TensorFixture () {}
4951
Original file line number Diff line number Diff line change @@ -32,9 +32,11 @@ struct TensorUMFixture {
3232  typedef  TensorN::range_type::index_view_type* index_view_type;
3333  typedef  TensorN::range_type range_type;
3434
35-   static   const  range_type r;
35+   const  range_type r;
3636
37-   TensorUMFixture () : t(r) { rand_fill (18 , t.size (), t.data ()); }
37+   TensorUMFixture () : r(make_range(81 )), t(r) {
38+     rand_fill (18 , t.size (), t.data ());
39+   }
3840
3941  ~TensorUMFixture () {}
4042
@@ -85,8 +87,6 @@ struct TensorUMFixture {
8587  TensorN t;
8688};
8789
88- const  TensorUMFixture::range_type TensorUMFixture::r = make_range(81 );
89- 
9090BOOST_FIXTURE_TEST_SUITE (tensor_um_suite, TensorUMFixture, TA_UT_LABEL_SERIAL)
9191
9292BOOST_AUTO_TEST_CASE(default_constructor) {
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments