[Commits] [wesnoth/wesnoth] 86775d: Add filesystem code unit tests (bug #23216)

GitHub noreply at github.com
Sun Apr 5 05:04:23 UTC 2015


  Branch: refs/heads/1.12
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 86775d48ee4597b81d6e379b17a0e8a425573d9a
      https://github.com/wesnoth/wesnoth/commit/86775d48ee4597b81d6e379b17a0e8a425573d9a
  Author: Ignacio R. Morelle <shadowm at wesnoth.org>
  Date:   2015-04-05 (Sun, 05 Apr 2015)

  Changed paths:
    A data/test/test/filesystem/enum/A1.cfg
    A data/test/test/filesystem/enum/A2.cfg
    A data/test/test/filesystem/enum/A3.cfg
    A data/test/test/filesystem/enum/B1.cfg
    A data/test/test/filesystem/enum/B2.cfg
    A data/test/test/filesystem/enum/B3.cfg
    A data/test/test/filesystem/enum/D1/empty_dir
    A data/test/test/filesystem/enum/D2/empty_dir
    A data/test/test/filesystem/enum/D3/empty_dir
    A data/test/test/filesystem/enum/_final.cfg
    A data/test/test/filesystem/enum/_initial.cfg
    M src/CMakeLists.txt
    M src/SConscript
    A src/tests/test_filesystem.cpp

  Log Message:
  -----------
  Add filesystem code unit tests (bug #23216)

This is somewhat incomplete, but already covers most core functionality
and helped uncover an important bug in the BFS implementation (see
commit 1c927c8407ec797ef9e9e58599a7b71e617fe864).

Most notably, normalize_path() isn't tested yet, as well as corner cases
with empty strings and get_wml_location().





More information about the Commits mailing list