diff options
author | Santiago Gimeno <santiago.gimeno@gmail.com> | 2022-12-10 19:36:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-10 19:36:46 +0100 |
commit | abf77a9eda3c83e74d8d0f60d77fe00cb888908b (patch) | |
tree | 7b5b0bc6ecc7db6f5b748813d72fa4b3825f9a81 /test/test-tty-escape-sequence-processing.c | |
parent | 75d9411e803dea5363bfdc223f1f284b8cf3dec3 (diff) | |
download | libuv-abf77a9eda3c83e74d8d0f60d77fe00cb888908b.tar.gz libuv-abf77a9eda3c83e74d8d0f60d77fe00cb888908b.zip |
test: fix some unreachable code warnings (#3851)
Diffstat (limited to 'test/test-tty-escape-sequence-processing.c')
-rw-r--r-- | test/test-tty-escape-sequence-processing.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/test/test-tty-escape-sequence-processing.c b/test/test-tty-escape-sequence-processing.c index 5f04291d..e311c0f0 100644 --- a/test/test-tty-escape-sequence-processing.c +++ b/test/test-tty-escape-sequence-processing.c @@ -1043,6 +1043,11 @@ TEST_IMPL(tty_set_cursor_shape) { TEST_IMPL(tty_set_style) { +#if _MSC_VER >= 1920 && _MSC_VER <= 1929 + RETURN_SKIP("Broken on Microsoft Visual Studio 2019, to be investigated. " + "See: https://github.com/libuv/libuv/issues/3304"); +#else + uv_tty_t tty_out; uv_loop_t* loop; COORD cursor_pos; @@ -1070,11 +1075,6 @@ TEST_IMPL(tty_set_style) { WORD attr; int i, length; -#if _MSC_VER >= 1920 && _MSC_VER <= 1929 - RETURN_SKIP("Broken on Microsoft Visual Studio 2019, to be investigated. " - "See: https://github.com/libuv/libuv/issues/3304"); -#endif - loop = uv_default_loop(); initialize_tty(&tty_out); @@ -1239,6 +1239,7 @@ TEST_IMPL(tty_set_style) { MAKE_VALGRIND_HAPPY(); return 0; +#endif } @@ -1345,6 +1346,10 @@ TEST_IMPL(tty_full_reset) { TEST_IMPL(tty_escape_sequence_processing) { +#if _MSC_VER >= 1920 && _MSC_VER <= 1929 + RETURN_SKIP("Broken on Microsoft Visual Studio 2019, to be investigated. " + "See: https://github.com/libuv/libuv/issues/3304"); +#else uv_tty_t tty_out; uv_loop_t* loop; COORD cursor_pos, cursor_pos_old; @@ -1353,11 +1358,6 @@ TEST_IMPL(tty_escape_sequence_processing) { struct captured_screen actual = {0}, expect = {0}; int dir; -#if _MSC_VER >= 1920 && _MSC_VER <= 1929 - RETURN_SKIP("Broken on Microsoft Visual Studio 2019, to be investigated. " - "See: https://github.com/libuv/libuv/issues/3304"); -#endif - loop = uv_default_loop(); initialize_tty(&tty_out); @@ -1622,6 +1622,7 @@ TEST_IMPL(tty_escape_sequence_processing) { MAKE_VALGRIND_HAPPY(); return 0; +#endif } #else |