Changes in / [03c0e44:e72969a]


Ignore:
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • Jenkinsfile

    r03c0e44 re72969a  
    172172                echo "Archiving core dumps"
    173173                dir (BuildDir) {
    174                         sh """${SrcDir}/tools/jenkins/archive-gen.sh"""
    175                         archiveArtifacts artifacts: "tests/crashes/**/*,lib/**/lib*.so*,setup.sh", fingerprint: true
     174                        if( fileExists 'tests/crashes' ) {
     175                                sh """${SrcDir}/tools/jenkins/archive-gen.sh"""
     176                                archiveArtifacts artifacts: "tests/crashes/**/*,lib/**/lib*.so*,setup.sh", fingerprint: true
     177                        }
    176178                }
    177179                throw err
  • tests/concurrent/.expect/sleep.txt

    r03c0e44 re72969a  
    11start
    2 fast loop 0.047
    3 fast loop 0.094
    4 fast loop 0.141
    5 fast loop 0.188
    6 fast loop 0.235
    7 slow loop 0.277
    8 fast loop 0.282
    9 fast loop 0.329
    10 fast loop 0.376
    11 fast loop 0.423
    12 fast loop 0.47
    13 fast loop 0.517
    14 slow loop 0.554
    15 fast loop 0.564
    16 fast loop 0.611
    17 fast loop 0.658
    18 fast loop 0.705
    19 fast loop 0.752
    20 fast loop 0.799
    21 slow loop 0.831
    22 fast loop 0.846
    23 fast loop 0.893
    24 fast loop 0.94
    25 slow loop 1.108
    262done
  • tests/concurrent/sleep.cfa

    r03c0e44 re72969a  
    77}
    88
     9volatile int counter = 0;
     10
    911thread fast_sleeper {};
    1012void main(fast_sleeper &) {
     
    1214        for(i; 20) {
    1315                sleep(wait);
    14                 sout | acquire | "fast loop" | ((1 + i) * wait);
     16                __atomic_fetch_add( &counter, 1, __ATOMIC_RELAXED );
    1517        }
    1618}
     
    2022        Duration wait = 277`ms;
    2123        for(i; 4) {
    22 
    2324                sleep(wait);
    24                 sout | acquire | "slow loop" | ((1 + i) * wait);
     25                int val = __atomic_add_fetch( &counter, -5, __ATOMIC_RELAXED );
     26                if(val < -9) abort | "Value reached negative value:" | val;
    2527        }
    2628}
  • tools/jenkins/setup.sh.in

    r03c0e44 re72969a  
    3030{
    3131        local elfout=$(readelf -d $1 | grep "RUNPATH")
    32         regex="\[/([[:alpha:]/@_-\.[:digit:]]+)\]"
     32        regex='\[/([[:alpha:][:digit:]@/_.-]+)\]'
    3333        if [[ $elfout =~ $regex ]]; then
    3434                local myRPath=${BASH_REMATCH[1]}
     
    4646        retlcldeps=()
    4747        while IFS= read -r line; do
    48                 regex1="/([[:alpha:]/@_-\.[:digit:]]+)"
    49                 regex2="(libcfa[[:alpha:]\.[:digit:]]+) => not found"
    50                 regex3="linux-vdso.so.1"
     48                regex1='/([[:alpha:][:digit:]@/_.-]+)'
     49                regex2='(libcfa[[:alpha:][:digit:].]+) => not found'
     50                regex3='linux-vdso.so.1'
    5151                if [[ $line =~ $regex1 ]]; then
    5252                        retsysdeps+=(${BASH_REMATCH[1]})
     
    123123do
    124124        # find the test's name
    125         regex="tests/crashes/[[[:alpha:]/-]+/([[:alpha:]/\@_\-\.[:digit:]]+)/exe"
     125        regex='tests/crashes/[[[:alpha:]/-]+/([[:alpha:][:digit:]@/_.-]+)/exe'
    126126        if [[ $pgm =~ $regex ]]; then
    127127                name=${BASH_REMATCH[1]}
Note: See TracChangeset for help on using the changeset viewer.