2018-03-01 16:06:23 +00:00
|
|
|
TAP version 13
|
|
|
|
# tst_Warnings
|
|
|
|
ok 1 - initTestCase()
|
|
|
|
ok 2 - testWarnings()
|
TAP test logger: move messages into the diagnostics block
Our TAP output was delivering messages as comments before the test
line, where TAP clearly expects the details of a test to follow its
test line. Version 13 provides a YAML block to deliver diagnostics and
encourages use of this, so accumulate our messages in a
QTestCharBuffer instead of emitting them one by one.
However, messages produced after a test has produced its test line
belong to that test, but are too late to be included in its
diagnostics block, so should be emitted immediately as before, albeit
now with a type prefix. This at least separates such messages, from
the end of one test, from messages produced early in the next.
In the process, add a type-prefix to each, to make clear what type of
message it was. Since the Yamlish supported by TAP consumers doesn't
support a way to have many messages, use the extensions: top-level
hash tag with a messages: sub-tag to gather our messages as a list.
(This expands at least one expected output file significantly and
substantially rewrites some others.)
Add methods to QTestCharBuffer, and a helper function, to support this.
Task-number: QTBUG-96844
Change-Id: If44a33da5879ed1670ef0980042599afd516f9d2
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2022-03-14 18:16:51 +00:00
|
|
|
---
|
|
|
|
extensions:
|
|
|
|
messages:
|
|
|
|
- severity: warning
|
|
|
|
message: Warning
|
|
|
|
- severity: warning
|
|
|
|
message: Warning
|
|
|
|
- severity: debug
|
|
|
|
message: Debug
|
|
|
|
- severity: debug
|
|
|
|
message: Debug
|
|
|
|
- severity: info
|
|
|
|
message: Info
|
|
|
|
- severity: info
|
|
|
|
message: Info
|
|
|
|
- severity: debug
|
|
|
|
message: Baba
|
|
|
|
- severity: debug
|
|
|
|
message: Baba
|
|
|
|
- severity: debug
|
|
|
|
message: Bubublabla
|
|
|
|
- severity: warning
|
|
|
|
message: Babablabla
|
|
|
|
...
|
2018-03-01 16:06:23 +00:00
|
|
|
not ok 3 - testMissingWarnings()
|
TAP test logger: move messages into the diagnostics block
Our TAP output was delivering messages as comments before the test
line, where TAP clearly expects the details of a test to follow its
test line. Version 13 provides a YAML block to deliver diagnostics and
encourages use of this, so accumulate our messages in a
QTestCharBuffer instead of emitting them one by one.
However, messages produced after a test has produced its test line
belong to that test, but are too late to be included in its
diagnostics block, so should be emitted immediately as before, albeit
now with a type prefix. This at least separates such messages, from
the end of one test, from messages produced early in the next.
In the process, add a type-prefix to each, to make clear what type of
message it was. Since the Yamlish supported by TAP consumers doesn't
support a way to have many messages, use the extensions: top-level
hash tag with a messages: sub-tag to gather our messages as a list.
(This expands at least one expected output file significantly and
substantially rewrites some others.)
Add methods to QTestCharBuffer, and a helper function, to support this.
Task-number: QTBUG-96844
Change-Id: If44a33da5879ed1670ef0980042599afd516f9d2
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2022-03-14 18:16:51 +00:00
|
|
|
# inform: Did not receive message: "Warning0"
|
|
|
|
# inform: Did not receive message: "Warning1"
|
2022-03-29 12:32:21 +00:00
|
|
|
---
|
2018-03-01 16:06:23 +00:00
|
|
|
# Not all expected messages were received
|
|
|
|
...
|
|
|
|
not ok 4 - testMissingWarningsRegularExpression()
|
TAP test logger: move messages into the diagnostics block
Our TAP output was delivering messages as comments before the test
line, where TAP clearly expects the details of a test to follow its
test line. Version 13 provides a YAML block to deliver diagnostics and
encourages use of this, so accumulate our messages in a
QTestCharBuffer instead of emitting them one by one.
However, messages produced after a test has produced its test line
belong to that test, but are too late to be included in its
diagnostics block, so should be emitted immediately as before, albeit
now with a type prefix. This at least separates such messages, from
the end of one test, from messages produced early in the next.
In the process, add a type-prefix to each, to make clear what type of
message it was. Since the Yamlish supported by TAP consumers doesn't
support a way to have many messages, use the extensions: top-level
hash tag with a messages: sub-tag to gather our messages as a list.
(This expands at least one expected output file significantly and
substantially rewrites some others.)
Add methods to QTestCharBuffer, and a helper function, to support this.
Task-number: QTBUG-96844
Change-Id: If44a33da5879ed1670ef0980042599afd516f9d2
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2022-03-14 18:16:51 +00:00
|
|
|
# inform: Did not receive any message matching: "Warning\s\d"
|
2022-03-29 12:32:21 +00:00
|
|
|
---
|
2018-03-01 16:06:23 +00:00
|
|
|
# Not all expected messages were received
|
|
|
|
...
|
|
|
|
not ok 5 - testMissingWarningsWithData(first row)
|
TAP test logger: move messages into the diagnostics block
Our TAP output was delivering messages as comments before the test
line, where TAP clearly expects the details of a test to follow its
test line. Version 13 provides a YAML block to deliver diagnostics and
encourages use of this, so accumulate our messages in a
QTestCharBuffer instead of emitting them one by one.
However, messages produced after a test has produced its test line
belong to that test, but are too late to be included in its
diagnostics block, so should be emitted immediately as before, albeit
now with a type prefix. This at least separates such messages, from
the end of one test, from messages produced early in the next.
In the process, add a type-prefix to each, to make clear what type of
message it was. Since the Yamlish supported by TAP consumers doesn't
support a way to have many messages, use the extensions: top-level
hash tag with a messages: sub-tag to gather our messages as a list.
(This expands at least one expected output file significantly and
substantially rewrites some others.)
Add methods to QTestCharBuffer, and a helper function, to support this.
Task-number: QTBUG-96844
Change-Id: If44a33da5879ed1670ef0980042599afd516f9d2
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2022-03-14 18:16:51 +00:00
|
|
|
# inform: Did not receive message: "Warning0"
|
|
|
|
# inform: Did not receive message: "Warning1"
|
2022-03-29 12:32:21 +00:00
|
|
|
---
|
2018-03-01 16:06:23 +00:00
|
|
|
# Not all expected messages were received
|
|
|
|
...
|
|
|
|
not ok 6 - testMissingWarningsWithData(second row)
|
TAP test logger: move messages into the diagnostics block
Our TAP output was delivering messages as comments before the test
line, where TAP clearly expects the details of a test to follow its
test line. Version 13 provides a YAML block to deliver diagnostics and
encourages use of this, so accumulate our messages in a
QTestCharBuffer instead of emitting them one by one.
However, messages produced after a test has produced its test line
belong to that test, but are too late to be included in its
diagnostics block, so should be emitted immediately as before, albeit
now with a type prefix. This at least separates such messages, from
the end of one test, from messages produced early in the next.
In the process, add a type-prefix to each, to make clear what type of
message it was. Since the Yamlish supported by TAP consumers doesn't
support a way to have many messages, use the extensions: top-level
hash tag with a messages: sub-tag to gather our messages as a list.
(This expands at least one expected output file significantly and
substantially rewrites some others.)
Add methods to QTestCharBuffer, and a helper function, to support this.
Task-number: QTBUG-96844
Change-Id: If44a33da5879ed1670ef0980042599afd516f9d2
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2022-03-14 18:16:51 +00:00
|
|
|
# inform: Did not receive message: "Warning0"
|
|
|
|
# inform: Did not receive message: "Warning1"
|
2022-03-29 12:32:21 +00:00
|
|
|
---
|
2018-03-01 16:06:23 +00:00
|
|
|
# Not all expected messages were received
|
|
|
|
...
|
2021-10-08 11:58:27 +00:00
|
|
|
not ok 7 - testFailOnWarnings()
|
|
|
|
---
|
|
|
|
# Received a warning that resulted in a failure:
|
|
|
|
Ran out of cabbage!
|
|
|
|
at: tst_Warnings::testFailOnWarnings() (qtbase/tests/auto/testlib/selftests/warnings/tst_warnings.cpp:0)
|
|
|
|
file: qtbase/tests/auto/testlib/selftests/warnings/tst_warnings.cpp
|
|
|
|
line: 0
|
2022-03-29 12:32:21 +00:00
|
|
|
extensions:
|
|
|
|
messages:
|
|
|
|
- severity: warning
|
|
|
|
message: Ran out of space!
|
2021-10-08 11:58:27 +00:00
|
|
|
...
|
TAP test logger: move messages into the diagnostics block
Our TAP output was delivering messages as comments before the test
line, where TAP clearly expects the details of a test to follow its
test line. Version 13 provides a YAML block to deliver diagnostics and
encourages use of this, so accumulate our messages in a
QTestCharBuffer instead of emitting them one by one.
However, messages produced after a test has produced its test line
belong to that test, but are too late to be included in its
diagnostics block, so should be emitted immediately as before, albeit
now with a type prefix. This at least separates such messages, from
the end of one test, from messages produced early in the next.
In the process, add a type-prefix to each, to make clear what type of
message it was. Since the Yamlish supported by TAP consumers doesn't
support a way to have many messages, use the extensions: top-level
hash tag with a messages: sub-tag to gather our messages as a list.
(This expands at least one expected output file significantly and
substantially rewrites some others.)
Add methods to QTestCharBuffer, and a helper function, to support this.
Task-number: QTBUG-96844
Change-Id: If44a33da5879ed1670ef0980042599afd516f9d2
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2022-03-14 18:16:51 +00:00
|
|
|
# debug: Ran out of tortillas!
|
|
|
|
# info: Ran out of oil!
|
|
|
|
# warning: nope
|
2021-09-07 13:30:34 +00:00
|
|
|
not ok 7 - testFailOnWarnings()
|
2021-10-08 11:58:27 +00:00
|
|
|
---
|
|
|
|
# Received a warning that resulted in a failure:
|
|
|
|
Ran out of biscuits!
|
|
|
|
at: tst_Warnings::testFailOnWarnings() (qtbase/tests/auto/testlib/selftests/warnings/tst_warnings.cpp:0)
|
|
|
|
file: qtbase/tests/auto/testlib/selftests/warnings/tst_warnings.cpp
|
|
|
|
line: 0
|
|
|
|
...
|
2021-09-07 13:30:34 +00:00
|
|
|
not ok 7 - testFailOnWarnings()
|
2021-10-08 11:58:27 +00:00
|
|
|
---
|
|
|
|
# Received a warning that resulted in a failure:
|
|
|
|
Running low on toothpaste!
|
|
|
|
at: tst_Warnings::testFailOnWarnings() (qtbase/tests/auto/testlib/selftests/warnings/tst_warnings.cpp:0)
|
|
|
|
file: qtbase/tests/auto/testlib/selftests/warnings/tst_warnings.cpp
|
|
|
|
line: 0
|
|
|
|
...
|
TAP test logger: move messages into the diagnostics block
Our TAP output was delivering messages as comments before the test
line, where TAP clearly expects the details of a test to follow its
test line. Version 13 provides a YAML block to deliver diagnostics and
encourages use of this, so accumulate our messages in a
QTestCharBuffer instead of emitting them one by one.
However, messages produced after a test has produced its test line
belong to that test, but are too late to be included in its
diagnostics block, so should be emitted immediately as before, albeit
now with a type prefix. This at least separates such messages, from
the end of one test, from messages produced early in the next.
In the process, add a type-prefix to each, to make clear what type of
message it was. Since the Yamlish supported by TAP consumers doesn't
support a way to have many messages, use the extensions: top-level
hash tag with a messages: sub-tag to gather our messages as a list.
(This expands at least one expected output file significantly and
substantially rewrites some others.)
Add methods to QTestCharBuffer, and a helper function, to support this.
Task-number: QTBUG-96844
Change-Id: If44a33da5879ed1670ef0980042599afd516f9d2
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2022-03-14 18:16:51 +00:00
|
|
|
# warning: Running low on flour!
|
|
|
|
# debug: Running low on toothpaste!
|
|
|
|
# info: Running low on toothpaste!
|
2021-09-07 13:30:34 +00:00
|
|
|
ok 8 - testFailOnWarningsCleared()
|
TAP test logger: move messages into the diagnostics block
Our TAP output was delivering messages as comments before the test
line, where TAP clearly expects the details of a test to follow its
test line. Version 13 provides a YAML block to deliver diagnostics and
encourages use of this, so accumulate our messages in a
QTestCharBuffer instead of emitting them one by one.
However, messages produced after a test has produced its test line
belong to that test, but are too late to be included in its
diagnostics block, so should be emitted immediately as before, albeit
now with a type prefix. This at least separates such messages, from
the end of one test, from messages produced early in the next.
In the process, add a type-prefix to each, to make clear what type of
message it was. Since the Yamlish supported by TAP consumers doesn't
support a way to have many messages, use the extensions: top-level
hash tag with a messages: sub-tag to gather our messages as a list.
(This expands at least one expected output file significantly and
substantially rewrites some others.)
Add methods to QTestCharBuffer, and a helper function, to support this.
Task-number: QTBUG-96844
Change-Id: If44a33da5879ed1670ef0980042599afd516f9d2
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2022-03-14 18:16:51 +00:00
|
|
|
---
|
|
|
|
extensions:
|
|
|
|
messages:
|
|
|
|
- severity: warning
|
|
|
|
message: Ran out of muffins!
|
|
|
|
...
|
2021-09-07 13:30:34 +00:00
|
|
|
not ok 9 - testFailOnWarningsWithData(warning1)
|
2021-10-08 11:58:27 +00:00
|
|
|
---
|
|
|
|
# Received a warning that resulted in a failure:
|
|
|
|
warning1
|
|
|
|
at: tst_Warnings::testFailOnWarningsWithData() (qtbase/tests/auto/testlib/selftests/warnings/tst_warnings.cpp:0)
|
|
|
|
file: qtbase/tests/auto/testlib/selftests/warnings/tst_warnings.cpp
|
|
|
|
line: 0
|
|
|
|
...
|
TAP test logger: move messages into the diagnostics block
Our TAP output was delivering messages as comments before the test
line, where TAP clearly expects the details of a test to follow its
test line. Version 13 provides a YAML block to deliver diagnostics and
encourages use of this, so accumulate our messages in a
QTestCharBuffer instead of emitting them one by one.
However, messages produced after a test has produced its test line
belong to that test, but are too late to be included in its
diagnostics block, so should be emitted immediately as before, albeit
now with a type prefix. This at least separates such messages, from
the end of one test, from messages produced early in the next.
In the process, add a type-prefix to each, to make clear what type of
message it was. Since the Yamlish supported by TAP consumers doesn't
support a way to have many messages, use the extensions: top-level
hash tag with a messages: sub-tag to gather our messages as a list.
(This expands at least one expected output file significantly and
substantially rewrites some others.)
Add methods to QTestCharBuffer, and a helper function, to support this.
Task-number: QTBUG-96844
Change-Id: If44a33da5879ed1670ef0980042599afd516f9d2
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2022-03-14 18:16:51 +00:00
|
|
|
# warning: warning2
|
|
|
|
# warning: warning3
|
2021-09-07 13:30:34 +00:00
|
|
|
not ok 10 - testFailOnWarningsWithData(warning2)
|
2021-10-08 11:58:27 +00:00
|
|
|
---
|
|
|
|
# Received a warning that resulted in a failure:
|
|
|
|
warning2
|
|
|
|
at: tst_Warnings::testFailOnWarningsWithData() (qtbase/tests/auto/testlib/selftests/warnings/tst_warnings.cpp:0)
|
|
|
|
file: qtbase/tests/auto/testlib/selftests/warnings/tst_warnings.cpp
|
|
|
|
line: 0
|
2022-03-29 12:32:21 +00:00
|
|
|
extensions:
|
|
|
|
messages:
|
|
|
|
- severity: warning
|
|
|
|
message: warning1
|
2021-10-08 11:58:27 +00:00
|
|
|
...
|
TAP test logger: move messages into the diagnostics block
Our TAP output was delivering messages as comments before the test
line, where TAP clearly expects the details of a test to follow its
test line. Version 13 provides a YAML block to deliver diagnostics and
encourages use of this, so accumulate our messages in a
QTestCharBuffer instead of emitting them one by one.
However, messages produced after a test has produced its test line
belong to that test, but are too late to be included in its
diagnostics block, so should be emitted immediately as before, albeit
now with a type prefix. This at least separates such messages, from
the end of one test, from messages produced early in the next.
In the process, add a type-prefix to each, to make clear what type of
message it was. Since the Yamlish supported by TAP consumers doesn't
support a way to have many messages, use the extensions: top-level
hash tag with a messages: sub-tag to gather our messages as a list.
(This expands at least one expected output file significantly and
substantially rewrites some others.)
Add methods to QTestCharBuffer, and a helper function, to support this.
Task-number: QTBUG-96844
Change-Id: If44a33da5879ed1670ef0980042599afd516f9d2
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2022-03-14 18:16:51 +00:00
|
|
|
# warning: warning3
|
2021-09-07 13:30:34 +00:00
|
|
|
not ok 11 - testFailOnWarningsWithData(warning3)
|
2021-10-08 11:58:27 +00:00
|
|
|
---
|
2022-03-29 12:32:21 +00:00
|
|
|
# Received a warning that resulted in a failure:
|
|
|
|
warning3
|
|
|
|
at: tst_Warnings::testFailOnWarningsWithData() (qtbase/tests/auto/testlib/selftests/warnings/tst_warnings.cpp:0)
|
|
|
|
file: qtbase/tests/auto/testlib/selftests/warnings/tst_warnings.cpp
|
|
|
|
line: 0
|
TAP test logger: move messages into the diagnostics block
Our TAP output was delivering messages as comments before the test
line, where TAP clearly expects the details of a test to follow its
test line. Version 13 provides a YAML block to deliver diagnostics and
encourages use of this, so accumulate our messages in a
QTestCharBuffer instead of emitting them one by one.
However, messages produced after a test has produced its test line
belong to that test, but are too late to be included in its
diagnostics block, so should be emitted immediately as before, albeit
now with a type prefix. This at least separates such messages, from
the end of one test, from messages produced early in the next.
In the process, add a type-prefix to each, to make clear what type of
message it was. Since the Yamlish supported by TAP consumers doesn't
support a way to have many messages, use the extensions: top-level
hash tag with a messages: sub-tag to gather our messages as a list.
(This expands at least one expected output file significantly and
substantially rewrites some others.)
Add methods to QTestCharBuffer, and a helper function, to support this.
Task-number: QTBUG-96844
Change-Id: If44a33da5879ed1670ef0980042599afd516f9d2
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2022-03-14 18:16:51 +00:00
|
|
|
extensions:
|
|
|
|
messages:
|
|
|
|
- severity: warning
|
|
|
|
message: warning1
|
|
|
|
- severity: warning
|
|
|
|
message: warning2
|
2021-10-08 11:58:27 +00:00
|
|
|
...
|
2021-09-07 13:30:34 +00:00
|
|
|
not ok 12 - testFailOnWarningsFailInHelper()
|
2021-10-08 11:58:27 +00:00
|
|
|
---
|
|
|
|
# This failure message should be printed but not cause the test to abort
|
|
|
|
at: tst_Warnings::testFailOnWarningsFailInHelper() (qtbase/tests/auto/testlib/selftests/warnings/tst_warnings.cpp:0)
|
|
|
|
file: qtbase/tests/auto/testlib/selftests/warnings/tst_warnings.cpp
|
|
|
|
line: 0
|
|
|
|
...
|
2021-09-07 13:30:34 +00:00
|
|
|
not ok 12 - testFailOnWarningsFailInHelper()
|
2021-10-08 11:58:27 +00:00
|
|
|
---
|
|
|
|
# Received a warning that resulted in a failure:
|
|
|
|
Ran out of cabbage!
|
|
|
|
at: tst_Warnings::testFailOnWarningsFailInHelper() (qtbase/tests/auto/testlib/selftests/warnings/tst_warnings.cpp:0)
|
|
|
|
file: qtbase/tests/auto/testlib/selftests/warnings/tst_warnings.cpp
|
|
|
|
line: 0
|
|
|
|
...
|
2021-09-07 13:30:34 +00:00
|
|
|
not ok 12 - testFailOnWarningsFailInHelper()
|
2021-10-08 11:58:27 +00:00
|
|
|
---
|
|
|
|
# My cabbage! :(
|
|
|
|
at: tst_Warnings::testFailOnWarningsFailInHelper() (qtbase/tests/auto/testlib/selftests/warnings/tst_warnings.cpp:0)
|
|
|
|
file: qtbase/tests/auto/testlib/selftests/warnings/tst_warnings.cpp
|
|
|
|
line: 0
|
|
|
|
...
|
2021-09-07 13:30:34 +00:00
|
|
|
not ok 13 - testFailOnWarningsThenSkip()
|
2021-10-08 11:58:27 +00:00
|
|
|
---
|
|
|
|
# Received a warning that resulted in a failure:
|
|
|
|
Ran out of cabbage!
|
|
|
|
at: tst_Warnings::testFailOnWarningsThenSkip() (qtbase/tests/auto/testlib/selftests/warnings/tst_warnings.cpp:0)
|
|
|
|
file: qtbase/tests/auto/testlib/selftests/warnings/tst_warnings.cpp
|
|
|
|
line: 0
|
|
|
|
...
|
2021-09-07 13:30:34 +00:00
|
|
|
ok 13 - testFailOnWarningsThenSkip() # SKIP My cabbage! :(
|
|
|
|
ok 14 - testFailOnWarningsAndIgnoreWarnings()
|
|
|
|
ok 15 - cleanupTestCase()
|
|
|
|
1..15
|
|
|
|
# tests 15
|
2021-10-08 11:58:27 +00:00
|
|
|
# pass 5
|
2021-09-07 13:30:34 +00:00
|
|
|
# fail 10
|