Skip to content

Commit

Permalink
TestIO: added missing testing of Win32W (#6728)
Browse files Browse the repository at this point in the history
  • Loading branch information
firewave committed Sep 24, 2024
1 parent cc4f24b commit 437558d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/testio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -836,6 +836,8 @@ class TestIO : public TestFixture {
assertEquals(filename, linenr, emptyString, errout_str());
check(code, dinit(CheckOptions, $.inconclusive = true, $.platform = Platform::Type::Win32A, $.onlyFormatStr = true, $.cpp = cpp));
assertEquals(filename, linenr, emptyString, errout_str());
check(code, dinit(CheckOptions, $.inconclusive = true, $.platform = Platform::Type::Win32W, $.onlyFormatStr = true, $.cpp = cpp));
assertEquals(filename, linenr, emptyString, errout_str());
check(code, dinit(CheckOptions, $.inconclusive = true, $.platform = Platform::Type::Win64, $.onlyFormatStr = true, $.cpp = cpp));
assertEquals(filename, linenr, emptyString, errout_str());
}
Expand All @@ -850,6 +852,8 @@ class TestIO : public TestFixture {
assertEquals(filename, linenr, testScanfErrString, errout_str());
check(code, dinit(CheckOptions, $.inconclusive = true, $.platform = Platform::Type::Win32A, $.onlyFormatStr = true, $.cpp = cpp));
assertEquals(filename, linenr, testScanfErrString, errout_str());
check(code, dinit(CheckOptions, $.inconclusive = true, $.platform = Platform::Type::Win32W, $.onlyFormatStr = true, $.cpp = cpp));
assertEquals(filename, linenr, testScanfErrString, errout_str());
check(code, dinit(CheckOptions, $.inconclusive = true, $.platform = Platform::Type::Win64, $.onlyFormatStr = true, $.cpp = cpp));
assertEquals(filename, linenr, testScanfErrString, errout_str());
}
Expand All @@ -864,6 +868,8 @@ class TestIO : public TestFixture {
assertEquals(filename, linenr, testScanfErrAkaString, errout_str());
check(code, dinit(CheckOptions, $.inconclusive = true, $.portability = true, $.platform = Platform::Type::Win32A, $.onlyFormatStr = true, $.cpp = cpp));
assertEquals(filename, linenr, testScanfErrAkaString, errout_str());
check(code, dinit(CheckOptions, $.inconclusive = true, $.portability = true, $.platform = Platform::Type::Win32W, $.onlyFormatStr = true, $.cpp = cpp));
assertEquals(filename, linenr, testScanfErrAkaString, errout_str());
check(code, dinit(CheckOptions, $.inconclusive = true, $.portability = true, $.platform = Platform::Type::Win64, $.onlyFormatStr = true, $.cpp = cpp));
assertEquals(filename, linenr, testScanfErrAkaWin64String, errout_str());
}
Expand All @@ -878,6 +884,8 @@ class TestIO : public TestFixture {
assertEquals(filename, linenr, emptyString, errout_str());
check(code, dinit(CheckOptions, $.inconclusive = true, $.portability = true, $.platform = Platform::Type::Win32A, $.onlyFormatStr = true, $.cpp = cpp));
assertEquals(filename, linenr, emptyString, errout_str());
check(code, dinit(CheckOptions, $.inconclusive = true, $.portability = true, $.platform = Platform::Type::Win32W, $.onlyFormatStr = true, $.cpp = cpp));
assertEquals(filename, linenr, emptyString, errout_str());
check(code, dinit(CheckOptions, $.inconclusive = true, $.portability = true, $.platform = Platform::Type::Win64, $.onlyFormatStr = true, $.cpp = cpp));
assertEquals(filename, linenr, testScanfErrAkaWin64String, errout_str());
}
Expand All @@ -892,6 +900,8 @@ class TestIO : public TestFixture {
assertEquals(filename, linenr, testScanfErrAkaString, errout_str());
check(code, dinit(CheckOptions, $.inconclusive = true, $.portability = true, $.platform = Platform::Type::Win32A, $.onlyFormatStr = true, $.cpp = cpp));
assertEquals(filename, linenr, testScanfErrAkaString, errout_str());
check(code, dinit(CheckOptions, $.inconclusive = true, $.portability = true, $.platform = Platform::Type::Win32W, $.onlyFormatStr = true, $.cpp = cpp));
assertEquals(filename, linenr, testScanfErrAkaString, errout_str());
check(code, dinit(CheckOptions, $.inconclusive = true, $.portability = true, $.platform = Platform::Type::Win64, $.onlyFormatStr = true, $.cpp = cpp));
assertEquals(filename, linenr, emptyString, errout_str());
}
Expand Down Expand Up @@ -2152,6 +2162,8 @@ class TestIO : public TestFixture {
ASSERT_EQUALS(result, errout_str());
check(code, dinit(CheckOptions, $.portability = true, $.platform = Platform::Type::Win32A));
ASSERT_EQUALS(result, errout_str());
check(code, dinit(CheckOptions, $.portability = true, $.platform = Platform::Type::Win32W));
ASSERT_EQUALS(result, errout_str());
check(code, dinit(CheckOptions, $.portability = true, $.platform = Platform::Type::Win64));
ASSERT_EQUALS(result_win64, errout_str());
}
Expand Down

0 comments on commit 437558d

Please sign in to comment.