OpenCoverageCoreutils

Coreutils patch #18 - Test report of the modifications

Overview

Test Execution StatusStatistics
Passed
  0.000% (0/108)
Failed
  0.000% (0/108)
Requires Manual Checking
  0.000% (0/108)
Unknown
  0.926% (1/108)
All
  0.926% (1/108)
CategoryRemoved LinesInserted LinesTotal
Modified lines executed:
  0.000% (0/12)
 50.000% (1/2)
  7.143% (1/14)
Modified lines not executed:
 16.667% (2/12)
 50.000% (1/2)
 21.429% (3/14)
Source code lines not covered:
 83.333% (10/12)
  0.000% (0/2)
 71.429% (10/14)

List of tests executing the changes

Execution NameState
cpUnknown

Patch File

Showing: 

Modified File: src/cp.c

LineTestsDifference Output
diff --git a/src/cp.c b/src/cp.c
index d81d41859..04ceb8687 100644
--- a/src/cp.c
+++ b/src/cp.c
@@ -40,16 +40,6 @@
40 # define lchown(name, uid, gid) chown (name, uid, gid)
41 #endif
42
43
-
No equivalent source code line in the reference code can be identified.
-#define ASSIGN_BASENAME_STRDUPA(Dest, File_name) \
44
-
No equivalent source code line in the reference code can be identified.
- do \
45
-
No equivalent source code line in the reference code can be identified.
- { \
46
-
No equivalent source code line in the reference code can be identified.
- char *tmp_abns_; \
47
-
No equivalent source code line in the reference code can be identified.
- ASSIGN_STRDUPA (tmp_abns_, (File_name)); \
48
-
No equivalent source code line in the reference code can be identified.
- Dest = last_component (tmp_abns_); \
49
-
No equivalent source code line in the reference code can be identified.
- strip_trailing_slashes (Dest); \
50
-
No equivalent source code line in the reference code can be identified.
- } \
51
-
No equivalent source code line in the reference code can be identified.
- while (0)
52
-
No equivalent source code line in the reference code can be identified.
-
53 ➡ 43 /* The official name of this program (e.g., no 'g' prefix). */
54 ➡ 44 #define PROGRAM_NAME "cp"
55 ➡ 45
@@ -693,8 +683,8 @@ do_copy (int n_files, char **file, const char *target_directory,
693 ➡ 683 {
694 ➡ 684 char *arg_base;
695 ➡ 685 /* Append the last component of 'arg' to 'target_directory'. */
696
0
-
697
0
- ASSIGN_BASENAME_STRDUPA (arg_base, arg);
686
0
+ ASSIGN_STRDUPA (arg_base, last_component (arg));
687
1
Executed by:
  • cp
+ strip_trailing_slashes (arg_base);
698 ➡ 688 /* For 'cp -R source/.. dest', don't copy into 'dest/..'. */
699 ➡ 689 dst_name = (STREQ (arg_base, "..")
700 ➡ 690 ? xstrdup (target_directory)

Generated by Squish Coco 4.1.2