View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014738CMake(No Category)public2014-02-06 08:052016-06-10 14:31
ReporterMathieu Malaterre 
Assigned ToKitware Robot 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionmoved 
PlatformOSOS Version
Product VersionCMake 2.8.11.1 
Target VersionFixed in Version 
Summary0014738: add_test should report duplicate test
DescriptionWhen working in large projects is happen sometimes that two tests have the same name. It would be nice if cmake would report that.
Steps To Reproduce$ cat CMakeLists.txt
project(t)
enable_testing()
add_test(foobar ls)
add_test(foobar uptime)
$ cmake .
$ make test
-> uptime is used
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0039465)
Ruslan Baratov (reporter)
2015-09-21 16:21

Hit same issue. CMake 3.3.2.

By the way NAME/COMMAND variant do report the duplication.

> cat CMakeLists.txt
cmake_minimum_required(VERSION 3.3.2)
project(t)
enable_testing()

add_test(NAME foobar COMMAND ls)
add_test(NAME foobar COMMAND uptime)

> rm -rf _builds && cmake -H. -B_builds
...
CMake Error at CMakeLists.txt:6 (add_test):
  add_test given test NAME "foobar" which already exists in this directory.
(0042478)
Kitware Robot (administrator)
2016-06-10 14:29

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.

 Issue History
Date Modified Username Field Change
2014-02-06 08:05 Mathieu Malaterre New Issue
2015-09-21 16:21 Ruslan Baratov Note Added: 0039465
2016-06-10 14:29 Kitware Robot Note Added: 0042478
2016-06-10 14:29 Kitware Robot Status new => resolved
2016-06-10 14:29 Kitware Robot Resolution open => moved
2016-06-10 14:29 Kitware Robot Assigned To => Kitware Robot
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team