From b7ffa3b17c4f8e77ea140a9dffc3c9cac335691b Mon Sep 17 00:00:00 2001 From: Snikimonkd Date: Tue, 21 Jan 2025 11:44:40 +0300 Subject: [PATCH] [feat] add test tmp files to gitignore --- .gitignore | 6 +++++- test/tmp/.gitkeep | 0 test/unit/stdlib/io/file_read_write_any.c3 | 10 +++++----- 3 files changed, 10 insertions(+), 6 deletions(-) create mode 100644 test/tmp/.gitkeep diff --git a/.gitignore b/.gitignore index d06e1951a..27309c909 100644 --- a/.gitignore +++ b/.gitignore @@ -80,4 +80,8 @@ TAGS result # macOS -.DS_Store \ No newline at end of file +.DS_Store + +# tests +/test/tmp/* +/test/testrun diff --git a/test/tmp/.gitkeep b/test/tmp/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/test/unit/stdlib/io/file_read_write_any.c3 b/test/unit/stdlib/io/file_read_write_any.c3 index abde8a219..23e9eab45 100644 --- a/test/unit/stdlib/io/file_read_write_any.c3 +++ b/test/unit/stdlib/io/file_read_write_any.c3 @@ -57,15 +57,15 @@ fn void read_write_any() data.total = 0xA55A; data.hello = 0xCC; - File file = file::open("__file_read_write_any_test_file", "wb")!!; + File file = file::open("tmp/__file_read_write_any_test_file", "wb")!!; io::write_any(&file, &data)!!; file.flush()!!; file.close()!!; - file = file::open("__file_read_write_any_test_file", "rb")!!; - Data rdata; - io::read_any(&file, &rdata)!!; + file = file::open("tmp/__file_read_write_any_test_file", "rb")!!; + Data rdata; + io::read_any(&file, &rdata)!!; file.close()!!; @@ -91,4 +91,4 @@ fn void read_write_any() assert(rdata.hello == data.hello); assert(rdata.hallo == data.hallo); assert(rdata.byebye == data.byebye); -} \ No newline at end of file +}