Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

[SYCL] Prevent skipped GPU run from overwriting CPU output in DeviceLib/assert.cpp #1228

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions SYCL/DeviceLib/assert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,12 @@
//
// Overall this sounds stable enough. What could possibly go wrong?
//
// RUN: %CPU_RUN_PLACEHOLDER env SYCL_PI_TRACE=2 SHOULD_CRASH=1 EXPECTED_SIGNAL=SIGABRT %t.out 2>%t.stderr.native
// RUN: %GPU_RUN_PLACEHOLDER env SHOULD_CRASH=1 EXPECTED_SIGNAL=SIGIOT %t.out 2>%t.stderr.native
// With either a CPU run or a GPU run we reset the output file and append the
// results of the runs. Otherwise a skipped GPU run may remove the output from
// a CPU run prior to running FileCheck.
// RUN: echo "" > %t.stderr.native
// RUN: %CPU_RUN_PLACEHOLDER SYCL_PI_TRACE=2 SHOULD_CRASH=1 EXPECTED_SIGNAL=SIGABRT %t.out 2>> %t.stderr.native
// RUN: %GPU_RUN_PLACEHOLDER SHOULD_CRASH=1 EXPECTED_SIGNAL=SIGIOT %t.out 2>> %t.stderr.native
// RUN: FileCheck %s --input-file %t.stderr.native --check-prefixes=CHECK-MESSAGE || FileCheck %s --input-file %t.stderr.native --check-prefix CHECK-NOTSUPPORTED
//
// Skip the test if the CPU RT doesn't support the extension yet:
Expand Down