summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2002-01-29 20:23:48 +0000
committerOwen Taylor <otaylor@src.gnome.org>2002-01-29 20:23:48 +0000
commit77f6f454f566f2fad79f70fc824667843566464c (patch)
tree3e7441aadc6ec4c34a987a9a124f1514402acd62
parent0c77be75ed78931f7f7d712367e9a703b18336d8 (diff)
Tue Jan 29 15:04:31 2002 Owen Taylor <otaylor@redhat.com> * 1.3.13 * tests/shell-test.c: Workaround for MSVC bugs. (#61064)
-rw-r--r--ChangeLog6
-rw-r--r--ChangeLog.pre-2-06
-rw-r--r--ChangeLog.pre-2-106
-rw-r--r--ChangeLog.pre-2-126
-rw-r--r--ChangeLog.pre-2-26
-rw-r--r--ChangeLog.pre-2-46
-rw-r--r--ChangeLog.pre-2-66
-rw-r--r--ChangeLog.pre-2-86
-rw-r--r--tests/shell-test.c18
9 files changed, 52 insertions, 14 deletions
diff --git a/ChangeLog b/ChangeLog
index 27bbf0218..6134076cb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0
index 27bbf0218..6134076cb 100644
--- a/ChangeLog.pre-2-0
+++ b/ChangeLog.pre-2-0
@@ -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>
diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10
index 27bbf0218..6134076cb 100644
--- a/ChangeLog.pre-2-10
+++ b/ChangeLog.pre-2-10
@@ -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>
diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12
index 27bbf0218..6134076cb 100644
--- a/ChangeLog.pre-2-12
+++ b/ChangeLog.pre-2-12
@@ -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>
diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2
index 27bbf0218..6134076cb 100644
--- a/ChangeLog.pre-2-2
+++ b/ChangeLog.pre-2-2
@@ -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>
diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4
index 27bbf0218..6134076cb 100644
--- a/ChangeLog.pre-2-4
+++ b/ChangeLog.pre-2-4
@@ -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>
diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6
index 27bbf0218..6134076cb 100644
--- a/ChangeLog.pre-2-6
+++ b/ChangeLog.pre-2-6
@@ -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>
diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8
index 27bbf0218..6134076cb 100644
--- a/ChangeLog.pre-2-8
+++ b/ChangeLog.pre-2-8
@@ -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>
diff --git a/tests/shell-test.c b/tests/shell-test.c
index e960412e9..0142b2540 100644
--- a/tests/shell-test.c
+++ b/tests/shell-test.c
@@ -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;
}