OverviewFilesCommitsIssuesDocsReleasesPeers

opencog-atomspace-storage commits / 4c55b73

Fix bogus file path in unt test
4c55b739f8ebe5ba09b1982b8f0f832740887949
by Linas Vepstas <linasvepstas@gmail.com> · 2025-12-17T03:15:47.000Z

Changed files (2) +5 -5

tests/persist/file/CMakeLists.txt +2 -0
……@@ -1,5 +1,7 @@
11
22ADD_GUILE_TEST(LoadFileTest load-file-test.scm)
3SET_PROPERTY(TEST LoadFileTest APPEND PROPERTY
4 ENVIRONMENT "PROJECT_SOURCE_DIR=${PROJECT_SOURCE_DIR}")
35
46# -----------------------
57## Python gorp
tests/persist/file/load-file-test.scm +3 -5
……@@ -22,11 +22,9 @@
2222(format #t "The current directory is ~A\n" (getcwd))
2323
2424; Fill atomspace from a file's content.
25;
26; Hack filename to go to the correct directory for the unit tests.
27; This test runs in the build dir, and the file to load is in the
28; source dir.
29(load-file "../../../../tests/persist/file/load-file-test-data.scm")
25; PROJECT_SOURCE_DIR is set by CMake to point to the source directory.
26(load-file (string-append (getenv "PROJECT_SOURCE_DIR")
27 "/tests/persist/file/load-file-test-data.scm"))
3028
3129(define names (map cog-name (cog-get-atoms "ConceptNode")))
3230