Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 22554c91 authored by Josh Gao's avatar Josh Gao
Browse files

adb: allow wine's output for sysdeps_win32 strerror test.

Change-Id: Ia5d04a2347df1bcd8c7efcc1da9cec9725007a58
parent dc5bd3a1
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -87,8 +87,12 @@ TEST(sysdeps_win32, adb_strerror) {
    TestAdbStrError(-1, "Unknown error");
    // Test very big, positive unknown error.
    TestAdbStrError(1000000, "Unknown error");

    // Test success case.
    TestAdbStrError(0, "No error");
    // Wine returns "Success" for strerror(0), Windows returns "No error", so accept both.
    std::string success = adb_strerror(0);
    EXPECT_TRUE(success == "Success" || success == "No error") << "strerror(0) = " << success;

    // Test error that regular strerror() should have a string for.
    TestAdbStrError(EPERM, "Operation not permitted");
    // Test error that regular strerror() doesn't have a string for, but that