[dmd-internals] [D-Programming-Language/dmd] 8f478a: Bug 5587: Give unit test name by __LINE__.

GitHub noreply at github.com
Wed Sep 5 19:46:54 PDT 2012


  Branch: refs/heads/master
  Home:   https://github.com/D-Programming-Language/dmd
  Commit: 8f478ace129b50844aed91b5be82a78238cbb1dc
      https://github.com/D-Programming-Language/dmd/commit/8f478ace129b50844aed91b5be82a78238cbb1dc
  Author: KennyTM~ <kennytm at gmail.com>
  Date:   2012-02-03 (Fri, 03 Feb 2012)

  Changed paths:
    M src/func.c

  Log Message:
  -----------
  Bug 5587: Give unit test name by __LINE__.

This commit appends 'Lxx' to the unittest's mangled name. The user can get the line number from the traceback:

5   x       0x000091c5 onAssertErrorMsg + 73
6   x       0x00009206 onUnittestErrorMsg + 26
7   x       0x00013199 _d_unittestm + 45
8   x       0x000019d7 void x.__unittest_fail(int) + 27
9   x       0x00001a0a void x.__unittestL13_1() + 46
                                  ^^^ line 13


  Commit: af9cd30ba01ff1217fd3a30e09c9872d3aeff1d1
      https://github.com/D-Programming-Language/dmd/commit/af9cd30ba01ff1217fd3a30e09c9872d3aeff1d1
  Author: KennyTM~ <kennytm at gmail.com>
  Date:   2012-02-03 (Fri, 03 Feb 2012)

  Changed paths:
    M src/func.c

  Log Message:
  -----------
  Fix build failure: snprintf doesn't exist on Windows.


  Commit: d3669f79813ba314768daf43eb1bfa90dac4c4a1
      https://github.com/D-Programming-Language/dmd/commit/d3669f79813ba314768daf43eb1bfa90dac4c4a1
  Author: Walter Bright <walter at walterbright.com>
  Date:   2012-09-05 (Wed, 05 Sep 2012)

  Changed paths:
    M src/func.c

  Log Message:
  -----------
  Merge pull request #264 from kennytm/bug5587_unittestWithLine

Bug 5587: Give unit test name by __LINE__.


Compare: https://github.com/D-Programming-Language/dmd/compare/6a8be065d8ed...d3669f79813b


More information about the dmd-internals mailing list