From 705e2b2a7e37a6d5d95d335e3b4977c4049db664 Mon Sep 17 00:00:00 2001 From: Frederich Munch Date: Sun, 2 Oct 2016 21:22:46 -0400 Subject: [PATCH] Windows: Fix test failure because path has backslashes. --- test/Prompt/globalinit.C | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/Prompt/globalinit.C b/test/Prompt/globalinit.C index 83803079..88d1314a 100644 --- a/test/Prompt/globalinit.C +++ b/test/Prompt/globalinit.C @@ -6,13 +6,13 @@ // LICENSE.TXT for details. //------------------------------------------------------------------------------ -// RUN: %cling %s "globalinit(\"%s\")" | FileCheck %s +// RUN: %cling %s -I%p | FileCheck %s #include "cling/Interpreter/Interpreter.h" -void globalinit(const std::string& location) { - gCling->loadFile(location + ".h", false); // CHECK: A::S() - gCling->loadFile(location + "2.h", false); // CHECK: B::S() +void globalinit() { + gCling->loadFile("globalinit.C.h", false); // CHECK: A::S() + gCling->loadFile("globalinit.C2.h", false); // CHECK: B::S() } // CHECK: B::~S() // CHECK: A::~S()