diff options
author | Brad King <brad.king@kitware.com> | 2021-09-03 14:05:47 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-09-03 14:05:47 (GMT) |
commit | 8e16c9ed1c43310b027b5769044fd22a21a97ec1 (patch) | |
tree | 273eff5ddbe16c8f718ffd47934f8b64b3aecb7a /Source/kwsys/testStatus.cxx | |
parent | a89ae726f4cd7cb3c3e9d318f478e6ef90b0df60 (diff) | |
parent | 00ccc0f47c5ca1f640d1fe34eac135ac9a3adb36 (diff) | |
download | CMake-8e16c9ed1c43310b027b5769044fd22a21a97ec1.zip CMake-8e16c9ed1c43310b027b5769044fd22a21a97ec1.tar.gz CMake-8e16c9ed1c43310b027b5769044fd22a21a97ec1.tar.bz2 |
Merge branch 'upstream-KWSys' into update-kwsys
# By KWSys Upstream
* upstream-KWSys:
KWSys 2021-09-03 (0da908d4)
Diffstat (limited to 'Source/kwsys/testStatus.cxx')
-rw-r--r-- | Source/kwsys/testStatus.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/kwsys/testStatus.cxx b/Source/kwsys/testStatus.cxx index f85ef42..0a767a8 100644 --- a/Source/kwsys/testStatus.cxx +++ b/Source/kwsys/testStatus.cxx @@ -31,6 +31,10 @@ int testStatus(int, char* []) std::cerr << "Status Success constructor does not produce Success\n"; res = false; } + if (!status.IsSuccess()) { + std::cerr << "Status Success gives false IsSuccess\n"; + res = false; + } if (!status) { std::cerr << "Status Success kind is not true\n"; res = false; @@ -55,6 +59,10 @@ int testStatus(int, char* []) std::cerr << "Status POSIX constructor does not produce POSIX\n"; res = false; } + if (status.IsSuccess()) { + std::cerr << "Status POSIX gives true IsSuccess\n"; + res = false; + } if (status) { std::cerr << "Status POSIX kind is not false\n"; res = false; @@ -87,6 +95,10 @@ int testStatus(int, char* []) std::cerr << "Status Windows constructor does not produce Windows\n"; res = false; } + if (status.IsSuccess()) { + std::cerr << "Status Windows gives true IsSuccess\n"; + res = false; + } if (status) { std::cerr << "Status Windows kind is not false\n"; res = false; |