Skip to content

Commit

Permalink
Merge pull request #906 from CHIP-SPV/fix-768
Browse files Browse the repository at this point in the history
Ajust known_failures for abort,assert
  • Loading branch information
pvelesko authored Aug 17, 2024
2 parents fc6d412 + 4ea6a6f commit 4813847
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
1 change: 1 addition & 0 deletions scripts/unit_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ function check_tests {
if ! grep -q "The following tests FAILED" "$file"; then
return 0
else
echo "Checking $file"
grep -E "The following tests FAILED:" -A 1000 "$file" | sed '/^$/q' | tail -n +2
return 1
fi
Expand Down
10 changes: 4 additions & 6 deletions tests/known_failures.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
TOTAL_TESTS: 1397
ANY:
ALL:
TestAssert: 'Works only on dGPU, otherwise, things being printed out of order'
TestAssertFail: 'Works only on dGPU, otherwise, things being printed out of order'
abort: 'Works only on dGPU, otherwise, things being printed out of order'
hipcc-invalid-bitwidth-128: 'InvalidBitWidth: Invalid bit width in input: 128'
host-math-funcs: 'host and dev results differ'
shfl_sync: 'masks outside of 0xFFFFFFFF are not supported'
Expand All @@ -10,8 +13,6 @@ ANY:
# due to NaNs appearing in the input sometimes (NaN == NaN --> false).
Unit_hipMultiThreadStreams2: ''
Print_Out_Attributes: 'old HIP tests + new HIP API'
TestAssert: ''
TestAssertFail: ''
TestIndirectCall: ''
Unit_HMM_OverSubscriptionTst: ''
Unit_HipDeviceGetCacheConfig_Negative_Parameters: ''
Expand Down Expand Up @@ -400,16 +401,13 @@ ANY:
Unit_hipUserObjectRetain_Negative: ''
Unit_printf_flags: ''
Unit_printf_specifier: ''
abort: ''
abort2: ''
constant_fold_lgamma_r: ''
cuda-simpleCallback: ''
deviceMallocCompile: ''
hipMultiThreadAddCallback: ''
hipStreamSemantics: ''
syncthreadsExitedThreads: ''
LEVEL0_GPU:
CatchMemLeak1: ''
hipMemset_Unit_hipMemsetAsync_SetMemoryWithOffset_Helgrind: 'False positives from L0 helper thread'
OPENCL_CPU:
hipBlas-sgemm: 'GEMM SYCL exception: Backends mismatch'
Expand Down Expand Up @@ -496,7 +494,7 @@ salami:
LEVEL0_GPU:
OPENCL_CPU:
OPENCL_GPU:
Unit_hipGraphAddEventRecordNode_Functional_Simple: ''
Unit_hipGraphAddEventRecordNode_Functional_Simple: ''
Unit_hipGraphAddEventRecordNode_Functional_WithoutFlags: ''
Unit_hipGraphAddEventRecordNode_Functional_WithFlags: ''
Unit_hipGraphAddEventRecordNode_Functional_TimingDisabled: ''
Expand Down
2 changes: 1 addition & 1 deletion tests/runtime/TestAssert.bash
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ ${HIPCC} ${SRC_DIR}/inputs/Assert.hip -o assert
exit 1
}

grep -c "Assert.hip:5: void k(): Device-side assertion .false [&][&] \"Hello, World!\". failed." \
grep -c "Assert.hip:5: void k(): Device-side assertion \`false && \"Hello, World!\". failed." \
output.log || {
echo "FAIL: expected assertion error message was not found."
exit 1
Expand Down

0 comments on commit 4813847

Please sign in to comment.