From 4b27f038515b64bc9972cd44537836d3d0d87b06 Mon Sep 17 00:00:00 2001 From: Martin Dvorak Date: Sat, 12 Apr 2014 07:37:50 +0200 Subject: [PATCH] Adding test plan for escaped characters. --- tests/src/test_escape_chars.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 tests/src/test_escape_chars.c diff --git a/tests/src/test_escape_chars.c b/tests/src/test_escape_chars.c new file mode 100644 index 0000000..e8bdee5 --- /dev/null +++ b/tests/src/test_escape_chars.c @@ -0,0 +1,27 @@ +/* + ============================================================================ + Name : test_escape_chars.c + Author : martin.dvorak@mindforger.com + Copyright : Apache 2.0 + Description : A test for verification of escape/special chars handling + ============================================================================ +*/ + +void generate_bash_history_with_special_chars() { + /* + // crash + %s + + // substituation > should not happen: + date -d yesterday +%A + date -d yesterday +0X1.4C41E000008P-895 + + // crash + mocp -Q "<%state> '%file'\n" + */ +} + +void main() { + generate_bash_history_with_special_chars(); +} +