From 39b58a31aa623bf0e49f947018bdafcb0d1adf1e Mon Sep 17 00:00:00 2001 From: Artem Gindinson Date: Thu, 5 Nov 2020 14:44:18 +0300 Subject: [PATCH] [SYCL][Test] More leftover removal for FPGA archives As with [intel/llvm@750c979], remove the already-existing archive file to ensure correct behavior of the LIT in local environments. Signed-off-by: Artem Gindinson --- sycl/test/fpga_tests/fpga_device_link_diag.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sycl/test/fpga_tests/fpga_device_link_diag.cpp b/sycl/test/fpga_tests/fpga_device_link_diag.cpp index 3eadd9872cd9b..93389e22b2938 100644 --- a/sycl/test/fpga_tests/fpga_device_link_diag.cpp +++ b/sycl/test/fpga_tests/fpga_device_link_diag.cpp @@ -11,6 +11,8 @@ // RUN: %clangxx -fsycl -fintelfpga %s -c -o test_obj.o // RUN: touch dummy.cpp // RUN: %clangxx -fsycl -fintelfpga dummy.cpp -c +// To avoid appending objects to leftover archives, remove one if exists. +// RUN: rm dummy_arch.a || true // RUN: %clangxx -fsycl -fintelfpga -fsycl-link=image dummy.o -o dummy_arch.a // RUN: not %clangxx -fsycl -fintelfpga test_obj.o dummy_arch.a 2>&1 | FileCheck %s --check-prefix=CHK-FPGA-LINK-DIAG // CHK-FPGA-LINK-DIAG: note: diagnostic msg: The FPGA image does not include all device kernels from test_obj.o. Please re-generate the image