From 603818b97c795114f66a6fc13e8a5f0e54b49a13 Mon Sep 17 00:00:00 2001 From: Hubert Tong Date: Thu, 20 May 2021 09:50:33 -0400 Subject: [PATCH] [test] Fix pre-ra-sched.c to check for error message from stderr The test previous accidentally passed because it was looking for a lack of specific input from the binary(!) output being sent to stdout. --- clang/test/CodeGen/pre-ra-sched.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clang/test/CodeGen/pre-ra-sched.c b/clang/test/CodeGen/pre-ra-sched.c index 3bd7594a5db9..376e5641b63b 100644 --- a/clang/test/CodeGen/pre-ra-sched.c +++ b/clang/test/CodeGen/pre-ra-sched.c @@ -1,4 +1,4 @@ -// RUN: %clang %s -mllvm -pre-RA-sched=fast -c -o - | FileCheck %s -// RUN: %clang %s -mllvm -pre-RA-sched=linearize -c -o - | FileCheck %s +// RUN: %clang %s -mllvm -pre-RA-sched=fast -c -o %t-fast.o 2>&1 | FileCheck --allow-empty %s +// RUN: %clang %s -mllvm -pre-RA-sched=linearize -c -o %t-linearize.o 2>&1 | FileCheck --allow-empty %s // CHECK-NOT: clang (LLVM option parsing): for the --pre-RA-sched option: Cannot find option named