aboutsummaryrefslogtreecommitdiffstats
path: root/tests/core/test_01.c
diff options
context:
space:
mode:
authorPhil Shafer <phil@FreeBSD.org>2016-04-15 15:42:12 +0000
committerPhil Shafer <phil@FreeBSD.org>2016-04-15 15:42:12 +0000
commit4fde2bf0a5c2be74f596489a57fd30c9810b1c4d (patch)
treee06554b069a40318907ab918e557b702a251b84e /tests/core/test_01.c
parent65e9b9c344edf99c234e6e6ce60d0267607814ad (diff)
downloadsrc-4fde2bf0a5c2be74f596489a57fd30c9810b1c4d.tar.gz
src-4fde2bf0a5c2be74f596489a57fd30c9810b1c4d.zip
Import libxo 0.4.7vendor/Juniper/libxo/0.4.7
Notes
Notes: svn path=/vendor/Juniper/libxo/dist/; revision=298063 svn path=/vendor/Juniper/libxo/0.4.7/; revision=298064; tag=vendor/Juniper/libxo/0.4.7
Diffstat (limited to 'tests/core/test_01.c')
-rw-r--r--tests/core/test_01.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/core/test_01.c b/tests/core/test_01.c
index f7fe61ec1ebe..5c748772fb9f 100644
--- a/tests/core/test_01.c
+++ b/tests/core/test_01.c
@@ -169,6 +169,16 @@ main (int argc, char **argv)
xo_emit("X{P: }X{Lwc:Cost}{:cost/%u}\n", 425);
xo_emit("X{P:/%30s}X{Lwc:Cost}{:cost/%u}\n", "", 455);
+ xo_emit("{e:mode/%s}{e:mode_octal/%s} {t:links/%s} "
+ "{t:user/%s} {t:group/%s} \n",
+ "mode", "octal", "links",
+ "user", "group", "extra1", "extra2", "extra3");
+
+ xo_emit("{t:mode/%s}{e:mode_octal/%03o} {t:links/%*u} "
+ "{t:user/%-*s} {t:group/%-*s} \n",
+ "/some/file", (int) 0640, 8, 1,
+ 10, "user", 12, "group");
+
xo_close_container_h(NULL, "top");
xo_finish();