mirror of https://github.com/KLayout/klayout.git
Some enhancements/bug fixes for Windows
* Enabled pipe: on outputs * Don't die on file paths containing backslashes in DRC tests
This commit is contained in:
parent
49fd896e68
commit
628219080a
|
|
@ -36,8 +36,8 @@ TEST(1)
|
|||
|
||||
lym::Macro drc;
|
||||
drc.set_text (tl::sprintf (
|
||||
"source(\"%s\", \"TOP\")\n"
|
||||
"target(\"%s\", \"TOP\")\n"
|
||||
"source('%s', \"TOP\")\n"
|
||||
"target('%s', \"TOP\")\n"
|
||||
"l1 = input(1, 0)\n"
|
||||
"l1t = labels(1, 0)\n"
|
||||
"l2 = input(2, 0)\n"
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ TEST(1)
|
|||
lym::Macro config;
|
||||
config.set_text (tl::sprintf (
|
||||
"$drc_test_source = nil\n"
|
||||
"$drc_test_target = \"%s\"\n"
|
||||
"$drc_test_target = '%s'\n"
|
||||
, output)
|
||||
);
|
||||
config.set_interpreter (lym::Macro::Ruby);
|
||||
|
|
@ -79,8 +79,8 @@ TEST(2)
|
|||
// Set some variables
|
||||
lym::Macro config;
|
||||
config.set_text (tl::sprintf (
|
||||
"$drc_test_source = \"%s\"\n"
|
||||
"$drc_test_target = \"%s\"\n"
|
||||
"$drc_test_source = '%s'\n"
|
||||
"$drc_test_target = '%s'\n"
|
||||
, input, output)
|
||||
);
|
||||
config.set_interpreter (lym::Macro::Ruby);
|
||||
|
|
@ -119,8 +119,8 @@ TEST(3)
|
|||
// Set some variables
|
||||
lym::Macro config;
|
||||
config.set_text (tl::sprintf (
|
||||
"$drc_test_source = \"%s\"\n"
|
||||
"$drc_test_target = \"%s\"\n"
|
||||
"$drc_test_source = '%s'\n"
|
||||
"$drc_test_target = '%s'\n"
|
||||
, input, output)
|
||||
);
|
||||
config.set_interpreter (lym::Macro::Ruby);
|
||||
|
|
|
|||
|
|
@ -44,8 +44,8 @@ void runtest (tl::TestBase *_this, int mode)
|
|||
// Set some variables
|
||||
lym::Macro config;
|
||||
config.set_text (tl::sprintf (
|
||||
"$drc_test_source = \"%s\"\n"
|
||||
"$drc_test_target = \"%s\"\n"
|
||||
"$drc_test_source = '%s'\n"
|
||||
"$drc_test_target = '%s'\n"
|
||||
"$drc_test_mode = %d\n"
|
||||
, input, output, mode)
|
||||
);
|
||||
|
|
|
|||
|
|
@ -645,10 +645,8 @@ OutputStream::OutputStream (const std::string &abstract_path, OutputStreamMode o
|
|||
tl::Extractor ex (abstract_path.c_str ());
|
||||
if (ex.test ("http:") || ex.test ("https:")) {
|
||||
throw tl::Exception (tl::to_string (tr ("Cannot write to http:, https: or pipe: URL's")));
|
||||
#ifndef _WIN32 // not available on Windows
|
||||
} else if (ex.test ("pipe:")) {
|
||||
mp_delegate = new OutputPipe (ex.get ());
|
||||
#endif
|
||||
} else if (ex.test ("file:")) {
|
||||
mp_delegate = create_file_stream (ex.get (), om);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue