Followup to fix more compiler warnings for Bug 473417 tests
authorRobert Strong <robert.bugzilla@gmail.com>
Sun, 08 Feb 2009 15:44:56 -0800
changeset 24760 fa042e16ce12947fa6b014b367477b94e7520d84
parent 24759 d9333047eac6b3efac023107661d36af815b3986
child 24761 8a0a89771a31722abb09785f107af3c65190868e
push id5221
push userrstrong@mozilla.com
push dateSat, 07 Feb 2009 23:46:01 +0000
treeherdermozilla-central@fa042e16ce12 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs473417
milestone1.9.2a1pre
Followup to fix more compiler warnings for Bug 473417 tests
toolkit/mozapps/update/test/TestAUSReadStrings.cpp
--- a/toolkit/mozapps/update/test/TestAUSReadStrings.cpp
+++ b/toolkit/mozapps/update/test/TestAUSReadStrings.cpp
@@ -86,18 +86,18 @@ int NS_main(int argc, NS_tchar **argv)
 
   int rv = 0;
   int retval;
   NS_tchar inifile[MAXPATHLEN];
   StringTable testStrings;
 
   NS_tchar *slash = NS_tstrrchr(argv[0], PATH_SEPARATOR_CHAR);
   if (!slash) {
-    printf("%s | %s | unable to find platform specific path separator '%s'\n",
-           UNEXPECTED_FAIL_PREFIX, TEST_NAME, PATH_SEPARATOR_CHAR);
+    printf("%s | %s | unable to find platform specific path separator\n",
+           UNEXPECTED_FAIL_PREFIX, TEST_NAME);
     return 20;
   }
 
   *(++slash) = '\0';
 
   // Test success when the ini file exists with both Title and InfoText in the
   // Strings section and test values for Title and InfoText.
   NS_tsnprintf(inifile, sizeof(inifile), NS_T("%sTestAUSReadStrings1.ini"), argv[0]);
@@ -145,17 +145,17 @@ int NS_main(int argc, NS_tchar **argv)
   }
 
   // Test failure when the ini file exists without Title and with Info and
   // InfoText in the Strings section.
   NS_tsnprintf(inifile, sizeof(inifile), NS_T("%sTestAUSReadStrings3.ini"), argv[0]);
   retval = ReadStrings(inifile, &testStrings);
   if (retval != PARSE_ERROR) {
     rv = 27;
-    printf("%s | %s %s ReadStrings returned %i | Test 3\n",
+    printf("%s | %s ReadStrings returned %i | Test 3\n",
            UNEXPECTED_FAIL_PREFIX, TEST_NAME, retval);
   }
 
   // Test failure when the ini file exists with Title and without InfoText and
   // Info in the Strings section.
   NS_tsnprintf(inifile, sizeof(inifile), NS_T("%sTestAUSReadStrings4.ini"), argv[0]);
   retval = ReadStrings(inifile, &testStrings);
   if (retval != PARSE_ERROR) {