File tree Expand file tree Collapse file tree 8 files changed +568
-14
lines changed Expand file tree Collapse file tree 8 files changed +568
-14
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ ci_script() {
2626  add_flag -gdwarf-2
2727
2828  #  Fix invalid register for .seh_savexmm error
29-   add_flag  -fno-asynchronous-unwind-tables
29+   add_c_flag  -fno-asynchronous-unwind-tables
3030
3131  docker run \
3232    -e ALLOW_TEST_FAILURE=true \
Original file line number Diff line number Diff line change @@ -393,10 +393,10 @@ endif()
393393
394394option (AUTOTEST "Enable autotests (mainly for CI)"  OFF )
395395
396- function (auto_test  target )
396+ function (auto_test_common  target  extension )
397397  if (AUTOTEST AND  NOT  (MSVC  AND  ARGV1 STREQUAL  "MSVC_DONT_BUILD" ))
398398    add_executable (auto_${target} _test ${CPUFEATURES} 
399-       auto_tests/${target} _test.c )
399+       auto_tests/${target} _test.${extension} )
400400    target_link_modules(auto_${target} _test toxcore misc_tools)
401401    if (NOT  ARGV1 STREQUAL  "DONT_RUN" )
402402      add_test (NAME  ${target}  COMMAND  ${CROSSCOMPILING_EMULATOR}  auto_${target} _test)
@@ -406,6 +406,14 @@ function(auto_test target)
406406  endif ()
407407endfunction ()
408408
409+ function (auto_test target )
410+     auto_test_common(${target}  "c"  ${ARGN} )
411+ endfunction ()
412+ 
413+ function (auto_test_cc target )
414+   auto_test_common(${target}  "cc"  ${ARGN} )
415+ endfunction ()
416+ 
409417auto_test(TCP)
410418auto_test(conference)
411419auto_test(conference_double_invite)
@@ -454,6 +462,7 @@ if(BUILD_TOXAV)
454462  auto_test(conference_av MSVC_DONT_BUILD)
455463  auto_test(toxav_basic)
456464  auto_test(toxav_many)
465+   auto_test_cc(toxav_mt)
457466endif ()
458467
459468################################################################################ 
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ flaky_tests = {
2222}
2323
2424[cc_test (
25-     name  =  src [:- 2 ],
25+     name  =  src [:src . rindex ( "." ) - len ( src ) ],
2626    size  =  "small" ,
2727    srcs  =  [src ],
2828    args  =  ["$(location %s)"  %  src ],
@@ -54,4 +54,4 @@ flaky_tests = {
5454        "@libsodium" ,
5555        "@libvpx" ,
5656    ],
57- ) for  src  in  glob (["*_test.c" ])]
57+ ) for  src  in  glob (["*_test.c* " ])]
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments