Changeset 174 for trunk/test


Ignore:
Timestamp:
Aug 27, 2008, 5:40:28 PM (16 years ago)
Author:
katerina
Message:

Fix for tickets #112, #113 (dnmalloc deadlock on fork, hostname portability in test script).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/test.sh

    r172 r174  
    482482
    483483find_hostname () {
    484     tmp=`hostname -f 2>/dev/null`
    485     if [ $? -ne 0 ]; then
     484
     485    uname -a | grep Linux >/dev/null
     486    if [ $? -eq 0 ]; then
     487        tmp=`hostname -f 2>/dev/null`
     488        if [ $? -ne 0 ]; then
     489            tmp=`hostname 2>/dev/null`
     490        fi
     491    else
    486492        tmp=`hostname 2>/dev/null`
    487493    fi
Note: See TracChangeset for help on using the changeset viewer.