diff options
Diffstat (limited to 'test cases/cmake/8 custom command/subprojects/cmMod/cp.cpp')
| -rw-r--r-- | test cases/cmake/8 custom command/subprojects/cmMod/cp.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test cases/cmake/8 custom command/subprojects/cmMod/cp.cpp b/test cases/cmake/8 custom command/subprojects/cmMod/cp.cpp index 2744da8fb..09433f24f 100644 --- a/test cases/cmake/8 custom command/subprojects/cmMod/cp.cpp +++ b/test cases/cmake/8 custom command/subprojects/cmMod/cp.cpp @@ -12,6 +12,11 @@ int main(int argc, char *argv[]) { ifstream src(argv[1]); ofstream dst(argv[2]); + if(!src.is_open()) { + cerr << "Failed to open " << argv[1] << endl; + return 2; + } + dst << src.rdbuf(); return 0; } |
