From b0fbd0da35ed132874848cf31a1c8294aee4476c Mon Sep 17 00:00:00 2001 From: Rob Browning Date: Sat, 10 May 2014 13:23:00 -0500 Subject: [PATCH] Revert "Write the system ARG_MAX to an autogenerated config.py..." Prepare to try a more direct approach. This reverts commit b72365ad597edbc528da5b93528fc3a67a18d58e. --- .gitignore | 1 - Makefile | 2 +- config/configure | 18 ------------------ lib/bup/t/tconfig.py | 8 -------- 4 files changed, 1 insertion(+), 28 deletions(-) delete mode 100644 lib/bup/t/tconfig.py diff --git a/.gitignore b/.gitignore index 25184bf..b5a261e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,6 @@ /bup /cmd/bup-* /lib/bup/_version.py -/lib/bup/config.py randomgen memtest *.o diff --git a/Makefile b/Makefile index 599835f..d8b19b5 100644 --- a/Makefile +++ b/Makefile @@ -174,7 +174,7 @@ clean: Documentation/clean config/clean .*~ *~ */*~ lib/*/*~ lib/*/*/*~ \ *.pyc */*.pyc lib/*/*.pyc lib/*/*/*.pyc \ bup bup-* cmd/bup-* lib/bup/_version.py randomgen memtest \ - testfs.img lib/bup/t/testfs.img lib/bup/config.py + testfs.img lib/bup/t/testfs.img if test -e t/mnt; then t/cleanup-mounts-under t/mnt; fi if test -e t/mnt; then rm -r t/mnt; fi if test -e t/tmp; then t/cleanup-mounts-under t/tmp; fi diff --git a/config/configure b/config/configure index e5f70dc..d6156d2 100755 --- a/config/configure +++ b/config/configure @@ -74,22 +74,4 @@ AC_CHECK_FIELD stat st_atimensec sys/types.h sys/stat.h unistd.h AC_CHECK_FIELD stat st_mtimensec sys/types.h sys/stat.h unistd.h AC_CHECK_FIELD stat st_ctimensec sys/types.h sys/stat.h unistd.h -cat > ../lib/bup/config.py <> ../lib/bup/config.py; then - AC_FAIL "ERROR: could not write to config.py." - fi - LOG " ($val_arg_max)" -fi - AC_OUTPUT config.vars diff --git a/lib/bup/t/tconfig.py b/lib/bup/t/tconfig.py deleted file mode 100644 index 1b5fbda..0000000 --- a/lib/bup/t/tconfig.py +++ /dev/null @@ -1,8 +0,0 @@ -from helpers import readpipe -from wvtest import * -import config - - -@wvtest -def test_arg_max(): - WVPASSEQ(int(readpipe(['getconf', 'ARG_MAX'])), config.arg_max) -- 2.39.2