Windows: Fix test failure because path has backslashes.

This commit is contained in:
Frederich Munch 2016-10-02 21:22:46 -04:00 committed by sftnight
parent d4aed2527d
commit 705e2b2a7e

View File

@ -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()