From 57014ffa525ef16d5001872141c89b453eca7c10 Mon Sep 17 00:00:00 2001 From: "liujisi@google.com" Date: Tue, 21 Dec 2010 05:56:35 +0000 Subject: Use Subprocess::Win32ErrorMessage() in command_line_interface_unittest to make the it OS locale independent. --- src/google/protobuf/compiler/command_line_interface_unittest.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/google/protobuf/compiler/command_line_interface_unittest.cc b/src/google/protobuf/compiler/command_line_interface_unittest.cc index d353376b..d5b3a1dc 100644 --- a/src/google/protobuf/compiler/command_line_interface_unittest.cc +++ b/src/google/protobuf/compiler/command_line_interface_unittest.cc @@ -48,6 +48,7 @@ #include #include #include +#include #include #include #include @@ -1140,9 +1141,8 @@ TEST_F(CommandLineInterfaceTest, GeneratorPluginNotFound) { "--proto_path=$tmpdir error.proto"); #ifdef _WIN32 - ExpectErrorSubstring( - "--badplug_out: prefix-gen-badplug: The system cannot find the file " - "specified."); + ExpectErrorSubstring("--badplug_out: prefix-gen-badplug: " + + Subprocess::Win32ErrorMessage(ERROR_FILE_NOT_FOUND)); #else // Error written to stdout by child process after exec() fails. ExpectErrorSubstring( -- cgit v1.2.3