diff options
| author | Glenn Morris | 2013-11-06 12:56:48 -0500 |
|---|---|---|
| committer | Glenn Morris | 2013-11-06 12:56:48 -0500 |
| commit | 6b4ac03ebef0dcd36699c34444ddce7a246c06aa (patch) | |
| tree | 146e4788decb37f16e00dbec7280f15a407f347c /test | |
| parent | 5ca114d1a897f57d5570e2e5b243dc7111ab1c73 (diff) | |
| download | emacs-6b4ac03ebef0dcd36699c34444ddce7a246c06aa.tar.gz emacs-6b4ac03ebef0dcd36699c34444ddce7a246c06aa.zip | |
Guard against possible accidental matches with parent dirs in Makefiles
* lisp/Makefile.in (setwins_almost, setwins_for_subdirs):
Avoid accidental matches.
* test/automated/Makefile.in (setwins): Avoid accidental matches.
Diffstat (limited to 'test')
| -rw-r--r-- | test/ChangeLog | 4 | ||||
| -rw-r--r-- | test/automated/Makefile.in | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/test/ChangeLog b/test/ChangeLog index e032af46af0..281ce981b5e 100644 --- a/test/ChangeLog +++ b/test/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2013-11-06 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * automated/Makefile.in (setwins): Avoid accidental matches. | ||
| 4 | |||
| 1 | 2013-11-06 Michael Albinus <michael.albinus@gmx.de> | 5 | 2013-11-06 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 6 | ||
| 3 | * automated/tramp-tests.el (tramp-test07-file-exists-p): | 7 | * automated/tramp-tests.el (tramp-test07-file-exists-p): |
diff --git a/test/automated/Makefile.in b/test/automated/Makefile.in index 63cffd9f828..617768995f1 100644 --- a/test/automated/Makefile.in +++ b/test/automated/Makefile.in | |||
| @@ -39,9 +39,8 @@ emacs = unset EMACSLOADPATH; \ | |||
| 39 | LC_ALL=C EMACS_TEST_DIRECTORY=$(srcdir) "$(EMACS)" $(EMACSOPT) | 39 | LC_ALL=C EMACS_TEST_DIRECTORY=$(srcdir) "$(EMACS)" $(EMACSOPT) |
| 40 | 40 | ||
| 41 | # Common command to find subdirectories | 41 | # Common command to find subdirectories |
| 42 | setwins=subdirs=`find $(srcdir) -type d -print`; \ | 42 | setwins=for file in `find $(srcdir) -type d -print`; do \ |
| 43 | for file in $$subdirs; do \ | 43 | case $$file in $(srcdir)*/data* | $(srcdir)*/flymake* ) ;; \ |
| 44 | case $$file in */data* | */flymake* ) ;; \ | ||
| 45 | *) wins="$$wins$${wins:+ }$$file" ;; \ | 44 | *) wins="$$wins$${wins:+ }$$file" ;; \ |
| 46 | esac; \ | 45 | esac; \ |
| 47 | done | 46 | done |