e3a4c7d
From 20ffd5bc4e45980dc804c5fa422e5182cbc975b7 Mon Sep 17 00:00:00 2001
e3a4c7d
From: Tom Stellard <tstellar@redhat.com>
e3a4c7d
Date: Tue, 13 Aug 2019 13:38:40 -0700
e3a4c7d
Subject: [PATCH] Fix Driver/modules.cpp test to work when build directory name
e3a4c7d
 contains '.s'
e3a4c7d
e3a4c7d
---
e3a4c7d
 clang/test/Driver/modules.cpp | 3 ++-
e3a4c7d
 1 file changed, 2 insertions(+), 1 deletion(-)
e3a4c7d
e3a4c7d
diff --git a/clang/test/Driver/modules.cpp b/clang/test/Driver/modules.cpp
e3a4c7d
index 7c549c1..9e06151 100644
e3a4c7d
--- a/clang/test/Driver/modules.cpp
e3a4c7d
+++ b/clang/test/Driver/modules.cpp
e3a4c7d
@@ -15,7 +15,8 @@
e3a4c7d
 // RUN: %clang -std=c++2a %t/module.pcm -S -o %t/module.pcm.o -v 2>&1 | FileCheck %s --check-prefix=CHECK-COMPILE
e3a4c7d
 //
e3a4c7d
 // CHECK-COMPILE: -cc1 {{.*}} {{-emit-obj|-S}}
e3a4c7d
-// CHECK-COMPILE-SAME: -o {{.*}}.{{pcm.o|s}}
e3a4c7d
+// Check for extra space to avoid failures when the build directory contains '.s' in its path.
e3a4c7d
+// CHECK-COMPILE-SAME: -o {{.*}}.{{pcm.o|s}}{{ }}
e3a4c7d
 // CHECK-COMPILE-SAME: -x pcm
e3a4c7d
 // CHECK-COMPILE-SAME: {{.*}}.pcm
e3a4c7d
 
e3a4c7d
-- 
e3a4c7d
1.8.3.1
e3a4c7d