Tue Jan 29 15:04:31 2002  Owen Taylor  <otaylor@redhat.com>

        * 1.3.13

        * tests/shell-test.c: Workaround for MSVC bugs. (#61064)
This commit is contained in:
Owen Taylor 2002-01-29 20:23:48 +00:00 committed by Owen Taylor
parent 0c77be75ed
commit 77f6f454f5
9 changed files with 52 additions and 14 deletions

View File

@ -1,7 +1,11 @@
Tue Jan 29 14:06:22 2002 Owen Taylor <otaylor@redhat.com>
Tue Jan 29 15:04:31 2002 Owen Taylor <otaylor@redhat.com>
* 1.3.13
* tests/shell-test.c: Workaround for MSVC bugs. (#61064)
Tue Jan 29 14:06:22 2002 Owen Taylor <otaylor@redhat.com>
* NEWS: Update to include last change.
2002-01-21 Jeffrey Stedfast <fejj@ximian.com>

View File

@ -1,7 +1,11 @@
Tue Jan 29 14:06:22 2002 Owen Taylor <otaylor@redhat.com>
Tue Jan 29 15:04:31 2002 Owen Taylor <otaylor@redhat.com>
* 1.3.13
* tests/shell-test.c: Workaround for MSVC bugs. (#61064)
Tue Jan 29 14:06:22 2002 Owen Taylor <otaylor@redhat.com>
* NEWS: Update to include last change.
2002-01-21 Jeffrey Stedfast <fejj@ximian.com>

View File

@ -1,7 +1,11 @@
Tue Jan 29 14:06:22 2002 Owen Taylor <otaylor@redhat.com>
Tue Jan 29 15:04:31 2002 Owen Taylor <otaylor@redhat.com>
* 1.3.13
* tests/shell-test.c: Workaround for MSVC bugs. (#61064)
Tue Jan 29 14:06:22 2002 Owen Taylor <otaylor@redhat.com>
* NEWS: Update to include last change.
2002-01-21 Jeffrey Stedfast <fejj@ximian.com>

View File

@ -1,7 +1,11 @@
Tue Jan 29 14:06:22 2002 Owen Taylor <otaylor@redhat.com>
Tue Jan 29 15:04:31 2002 Owen Taylor <otaylor@redhat.com>
* 1.3.13
* tests/shell-test.c: Workaround for MSVC bugs. (#61064)
Tue Jan 29 14:06:22 2002 Owen Taylor <otaylor@redhat.com>
* NEWS: Update to include last change.
2002-01-21 Jeffrey Stedfast <fejj@ximian.com>

View File

@ -1,7 +1,11 @@
Tue Jan 29 14:06:22 2002 Owen Taylor <otaylor@redhat.com>
Tue Jan 29 15:04:31 2002 Owen Taylor <otaylor@redhat.com>
* 1.3.13
* tests/shell-test.c: Workaround for MSVC bugs. (#61064)
Tue Jan 29 14:06:22 2002 Owen Taylor <otaylor@redhat.com>
* NEWS: Update to include last change.
2002-01-21 Jeffrey Stedfast <fejj@ximian.com>

View File

@ -1,7 +1,11 @@
Tue Jan 29 14:06:22 2002 Owen Taylor <otaylor@redhat.com>
Tue Jan 29 15:04:31 2002 Owen Taylor <otaylor@redhat.com>
* 1.3.13
* tests/shell-test.c: Workaround for MSVC bugs. (#61064)
Tue Jan 29 14:06:22 2002 Owen Taylor <otaylor@redhat.com>
* NEWS: Update to include last change.
2002-01-21 Jeffrey Stedfast <fejj@ximian.com>

View File

@ -1,7 +1,11 @@
Tue Jan 29 14:06:22 2002 Owen Taylor <otaylor@redhat.com>
Tue Jan 29 15:04:31 2002 Owen Taylor <otaylor@redhat.com>
* 1.3.13
* tests/shell-test.c: Workaround for MSVC bugs. (#61064)
Tue Jan 29 14:06:22 2002 Owen Taylor <otaylor@redhat.com>
* NEWS: Update to include last change.
2002-01-21 Jeffrey Stedfast <fejj@ximian.com>

View File

@ -1,7 +1,11 @@
Tue Jan 29 14:06:22 2002 Owen Taylor <otaylor@redhat.com>
Tue Jan 29 15:04:31 2002 Owen Taylor <otaylor@redhat.com>
* 1.3.13
* tests/shell-test.c: Workaround for MSVC bugs. (#61064)
Tue Jan 29 14:06:22 2002 Owen Taylor <otaylor@redhat.com>
* NEWS: Update to include last change.
2002-01-21 Jeffrey Stedfast <fejj@ximian.com>

View File

@ -269,19 +269,25 @@ main (int argc,
CHECK_STRING_RESULT (test_shell_unquote ("\\\n"), "");
CHECK_STRING_RESULT (test_shell_unquote ("'\\''"), "G_SHELL_ERROR_BAD_QUOTING");
#if defined (_MSC_VER) && (_MSC_VER <= 1200)
/* using \x22 instead of \" to work around a msvc 5.0, 6.0 compiler bug */
CHECK_STRING_RESULT (test_shell_unquote ("\x22\\\x22\""), "\"");
#else
CHECK_STRING_RESULT (test_shell_unquote ("\"\\\"\""), "\"");
#endif
CHECK_STRING_RESULT (test_shell_unquote ("\""), "G_SHELL_ERROR_BAD_QUOTING");
CHECK_STRING_RESULT (test_shell_unquote ("'"), "G_SHELL_ERROR_BAD_QUOTING");
CHECK_STRING_RESULT (test_shell_unquote ("\"\\\\\""), "\\");
CHECK_STRING_RESULT (test_shell_unquote ("\"\\`\""), "`");
CHECK_STRING_RESULT (test_shell_unquote ("\"\\$\""), "$");
CHECK_STRING_RESULT (test_shell_unquote ("\"\\\n\""), "\n");
CHECK_STRING_RESULT (test_shell_unquote ("\x22\\\\\""), "\\");
CHECK_STRING_RESULT (test_shell_unquote ("\x22\\`\""), "`");
CHECK_STRING_RESULT (test_shell_unquote ("\x22\\$\""), "$");
CHECK_STRING_RESULT (test_shell_unquote ("\x22\\\n\""), "\n");
CHECK_STRING_RESULT (test_shell_unquote ("\"\\'\""), "\\'");
CHECK_STRING_RESULT (test_shell_unquote ("\"\\\r\""), "\\\r");
CHECK_STRING_RESULT (test_shell_unquote ("\"\\n\""), "\\n");
CHECK_STRING_RESULT (test_shell_unquote ("\x22\\\r\""), "\\\r");
CHECK_STRING_RESULT (test_shell_unquote ("\x22\\n\""), "\\n");
return any_test_failed ? 1 : 0;
}