Rename temp test name given PR number

This commit is contained in:
Harold Brenes
2026-03-24 15:40:29 -04:00
parent 7a017d2ecd
commit b66e65e7f8
3 changed files with 5 additions and 5 deletions

View File

@@ -32,8 +32,8 @@ set COMMON=-define:ODIN_TEST_FANCY=false -file -vet -strict-style -ignore-unused
..\..\..\odin test ..\test_issue_6165.odin %COMMON% || exit /b
..\..\..\odin build ..\test_issue_6240.odin %COMMON% 2>&1 | find /c "Error:" | findstr /x "3" || exit /b
..\..\..\odin build ..\test_issue_6401.odin %COMMON% 2>&1 | find /c "Error:" | findstr /x "3" || exit /b
..\..\..\odin test ..\test_issue_xxxx.odin %COMMON% || exit /b
..\..\..\odin build ..\test_issue_xxxx.odin -define:TEST_EXPECT_FAILURE=true %COMMON% 2>&1 | find /c "Error:" | findstr /x "1" || exit /b
..\..\..\odin test ..\test_pr_6470.odin %COMMON% || exit /b
..\..\..\odin build ..\test_pr_6470.odin -define:TEST_EXPECT_FAILURE=true %COMMON% 2>&1 | find /c "Error:" | findstr /x "1" || exit /b
@echo off

View File

@@ -49,8 +49,8 @@ else
echo "SUCCESSFUL 0/1"
exit 1
fi
$ODIN test ../test_issue_xxxx.odin $COMMON
if [[ $($ODIN test ../test_issue_xxxx.odin -define:TEST_EXPECT_FAILURE=true $COMMON 2>&1 >/dev/null | grep -c "Error:") -eq 1 ]] ; then
$ODIN test ../test_pr_6470.odin $COMMON
if [[ $($ODIN test ../test_pr_6470.odin -define:TEST_EXPECT_FAILURE=true $COMMON 2>&1 >/dev/null | grep -c "Error:") -eq 1 ]] ; then
echo "SUCCESSFUL 1/1"
else
echo "SUCCESSFUL 0/1"

View File

@@ -1,4 +1,4 @@
// Tests PR #xxxx https://github.com/odin-lang/Odin/issues/xxxx
// Tests PR #6470 https://github.com/odin-lang/Odin/pull/6470
package test_issues
TEST_EXPECT_FAILURE :: #config(TEST_EXPECT_FAILURE, false)