From afb858397dfa76edcd2f338b97fc7db3af8847a7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ond=C5=99ej=20=C5=A0torc?= <storcond@fit.cvut.cz>
Date: Tue, 4 Apr 2023 13:16:53 +0200
Subject: [PATCH] cli: Fix file escaping

---
 alib2cli/test-src/aql/basic/file2.aql | 1 +
 alib2cli/test-src/aql/basic/file3.aql | 1 +
 alib2cli/test-src/cli/CliTest.cpp     | 2 +-
 3 files changed, 3 insertions(+), 1 deletion(-)
 create mode 100644 alib2cli/test-src/aql/basic/file2.aql
 create mode 100644 alib2cli/test-src/aql/basic/file3.aql

diff --git a/alib2cli/test-src/aql/basic/file2.aql b/alib2cli/test-src/aql/basic/file2.aql
new file mode 100644
index 000000000..b8c54c346
--- /dev/null
+++ b/alib2cli/test-src/aql/basic/file2.aql
@@ -0,0 +1 @@
+execute $set >"lo\\cal/yyy.xml"
\ No newline at end of file
diff --git a/alib2cli/test-src/aql/basic/file3.aql b/alib2cli/test-src/aql/basic/file3.aql
new file mode 100644
index 000000000..770853f2e
--- /dev/null
+++ b/alib2cli/test-src/aql/basic/file3.aql
@@ -0,0 +1 @@
+execute < "local/yyy.xml"
\ No newline at end of file
diff --git a/alib2cli/test-src/cli/CliTest.cpp b/alib2cli/test-src/cli/CliTest.cpp
index f93a0b60f..623381712 100644
--- a/alib2cli/test-src/cli/CliTest.cpp
+++ b/alib2cli/test-src/cli/CliTest.cpp
@@ -380,7 +380,7 @@ TEST_CASE("Cli", "[unit][cli]")
 
         testLine("execute $set | Print -", environment);
 
-        testLine("execute $set >\"lo\\\\cal/yyy.xml\"", environment);
+        testLine("execute $set >\"local/yyy.xml\"", environment);
 
         testLine("execute < \"local/yyy.xml\" > $set2", environment);
         CHECK(ext::to_string(environment.getVariable("set2")->getActualType()) == "ext::set<int>");
-- 
GitLab