[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 5/8] Add a test for find -printf ... %%.
From: |
James Youngman |
Subject: |
[PATCH 5/8] Add a test for find -printf ... %%. |
Date: |
Sat, 18 Jun 2011 15:50:58 +0100 |
* find/testsuite/find.gnu/printf.exp: Also test %%.
* find/testsuite/find.gnu/printf.xo: Add expected output for the
%% test case.
---
ChangeLog | 5 +++++
find/testsuite/find.gnu/printf.exp | 2 +-
find/testsuite/find.gnu/printf.xo | 1 +
3 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 6ca10fc..946030d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2011-06-18 James Youngman <address@hidden>
+ Add a test for find -printf ... %%.
+ * find/testsuite/find.gnu/printf.exp: Also test %%.
+ * find/testsuite/find.gnu/printf.xo: Add expected output for the
+ %% test case.
+
Add a test for "find -printf \c".
* find/testsuite/Makefile.am (test_shell_progs): New variable,
where we keep the list of shell script tests. This avoids needing
diff --git a/find/testsuite/find.gnu/printf.exp
b/find/testsuite/find.gnu/printf.exp
index c504d85..58031c4 100644
--- a/find/testsuite/find.gnu/printf.exp
+++ b/find/testsuite/find.gnu/printf.exp
@@ -2,5 +2,5 @@ exec rm -rf tmp
exec mkdir tmp
exec touch tmp/file
exec chmod 600 tmp/file
-find_start p {tmp -type f -printf "a %d\n" -printf "b %f\n" -printf "c %h\n"
-printf "d %H\n" -printf "e %l\n" -printf "f %m\n" -printf "g %n\n" -printf "h
%p\n" -printf "i %P\n" -printf "j %y\n" -printf "k %Y\n"}
+find_start p {tmp -type f -printf "a %d\n" -printf "b %f\n" -printf "c %h\n"
-printf "d %H\n" -printf "e %l\n" -printf "f %m\n" -printf "g %n\n" -printf "h
%p\n" -printf "i %P\n" -printf "j %y\n" -printf "k %Y\n" -printf "percent
it%%works%%\n"}
exec rm -rf tmp
diff --git a/find/testsuite/find.gnu/printf.xo
b/find/testsuite/find.gnu/printf.xo
index 4eda7e3..baacf2a 100644
--- a/find/testsuite/find.gnu/printf.xo
+++ b/find/testsuite/find.gnu/printf.xo
@@ -9,3 +9,4 @@ h tmp/file
i file
j f
k f
+percent it%works%
--
1.7.2.5
- [PATCH 0/8] Print refactoring, James Youngman, 2011/06/18
- [PATCH 3/8] Remove an unnecessary argument from insert_fprintf., James Youngman, 2011/06/18
- [PATCH 5/8] Add a test for find -printf ... %%.,
James Youngman <=
- [PATCH 7/8] Reserve format specifiers %(, %{ and %[ for future use., James Youngman, 2011/06/18
- [PATCH 6/8] Additional test cases for printf field width, precision and sign., James Youngman, 2011/06/18
- [PATCH 4/8] Add a test for "find -printf \c"., James Youngman, 2011/06/18
- [PATCH 2/8] Add new test for octal and letter escapes in -printf format., James Youngman, 2011/06/18
- [PATCH 1/8] Split find's printf-related code into a new file., James Youngman, 2011/06/18
- [PATCH 8/8] Move the printing code into print.c., James Youngman, 2011/06/18