Skip to content

Commit

Permalink
Fix line numbers for stack trace tests
Browse files Browse the repository at this point in the history
When the header comment was changed to trim down the copyright/license info,
it changed the line number of the code in the excpetion message.

This test is unusual in that it checks the line number of a source file but
that is the nature of this test and the code feature this is testing.
  • Loading branch information
bartlettroscoe committed Jul 18, 2024
1 parent 9642b2d commit b95e732
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/teuchos/core/test/MemoryManagement/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ TRIBITS_ADD_ADVANCED_TEST(
TEST_0 EXEC TestForException_throwTest
ARGS --no-enable-stacktrace
PASS_REGULAR_EXPRESSION_ALL
"teuchos.core.test.MemoryManagement.SimpleThrowFunctions.cpp:50"
"teuchos.core.test.MemoryManagement.SimpleThrowFunctions.cpp:16"
"Throw number = 1"
"Throw test that evaluated to true: true"
"This is an exception I throw!"
Expand All @@ -57,7 +57,7 @@ ASSERT_DEFINED(${PARENT_PACKAGE_NAME}_ENABLE_STACKTRACE)
IF (${PARENT_PACKAGE_NAME}_ENABLE_STACKTRACE)

SET(PASS_REGEXS
"teuchos.core.test.MemoryManagement.SimpleThrowFunctions.cpp:50"
"teuchos.core.test.MemoryManagement.SimpleThrowFunctions.cpp:16"
"Throw number = 1"
"Throw test that evaluated to true: true"
"This is an exception I throw!"
Expand Down

0 comments on commit b95e732

Please sign in to comment.