From 85de3048a589e3ad848fc0e4bad8587c7dbc983a Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Thu, 14 May 2020 18:50:49 -0400 Subject: [PATCH] Tests: Avoid poluting non-obj_ files. --- test_regress/t/t_sys_file_basic_mcd.v | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/test_regress/t/t_sys_file_basic_mcd.v b/test_regress/t/t_sys_file_basic_mcd.v index fd59a8211..16742829a 100644 --- a/test_regress/t/t_sys_file_basic_mcd.v +++ b/test_regress/t/t_sys_file_basic_mcd.v @@ -74,14 +74,10 @@ module t; task automatic test4; begin int fd; - // Small - fd = $fopen("a"); - if (fd == 0) fail("Small filename could not be opened."); - $fclose(fd); - // Large - fd = $fopen({"some_very_large_filename_that_no_one_would_ever_use_", - "except_to_purposefully_break_my_beautiful_code_", - "in a regression setting.dat"}); + // Wide filename + fd = $fopen({`STR(`TEST_OBJ_DIR), + "some_very_large_filename_that_no_one_would_ever_use_", + "except_to_purposefully_break_my_beautiful_code.dat"}); if (fd == 0) fail("Long filename could not be opened."); $fclose(fd); end endtask