]> git.kaiwu.me - nginx.git/commitdiff
Configure: fixed autotest source code logging.
authorMaxim Dounin <mdounin@mdounin.ru>
Fri, 1 Apr 2016 13:38:28 +0000 (16:38 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Fri, 1 Apr 2016 13:38:28 +0000 (16:38 +0300)
Fixed a regression introduced in rev. 434548349838 that prevented
auto/types/sizeof and auto/types/typedef properly reporting autotest
source code to autoconf.err in case of test failure.

auto/types/sizeof
auto/types/typedef

index a5f66bbd99a2c501844019742ac5aa6bce19e302..b5b71bb98275e47cdb37674d2386995fdb2658b7 100644 (file)
@@ -45,9 +45,6 @@ if [ -x $NGX_AUTOTEST ]; then
 fi
 
 
-rm -rf $NGX_AUTOTEST*
-
-
 case $ngx_size in
     4)
         ngx_max_value=2147483647
@@ -69,6 +66,11 @@ case $ngx_size in
         echo $ngx_test       >> $NGX_AUTOCONF_ERR
         echo "----------"    >> $NGX_AUTOCONF_ERR
 
+        rm -rf $NGX_AUTOTEST*
+
         exit 1
 esac
 
+
+rm -rf $NGX_AUTOTEST*
+
index 8b5c3689ced137ed84ad93bebd0c7e515270ff63..f167e80d95ac12f285cd424a89a8dd93670fbd47 100644 (file)
@@ -49,8 +49,6 @@ END
         fi
     fi
 
-    rm -rf $NGX_AUTOTEST*
-
     if [ $ngx_found = no ]; then
         echo $ngx_n " $ngx_try not found$ngx_c"
 
@@ -59,8 +57,11 @@ END
         echo "----------"    >> $NGX_AUTOCONF_ERR
         echo $ngx_test       >> $NGX_AUTOCONF_ERR
         echo "----------"    >> $NGX_AUTOCONF_ERR
+    fi
+
+    rm -rf $NGX_AUTOTEST*
 
-    else
+    if [ $ngx_found != no ]; then
         break
     fi
 done