diff options
author | David Kalnischkies <david@kalnischkies.de> | 2015-09-12 10:35:49 +0200 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2015-09-14 15:22:19 +0200 |
commit | 7414af7fa88164209eec9c585b8d175c1618ecbc (patch) | |
tree | 2a582637043bd8c57d43bf8b193dd9ecb479d559 /cmdline/apt-dump-solver.cc | |
parent | 7c4f1ca5fe315a8223570b05994d6d7ca7c55c4f (diff) |
various changes to increase test-coverage
And of course, testing obscure things ends up showing obscure 'bugs' or
better shortcomings/inconsitencies, so lets fix them with the tests.
Git-Dch: Ignore
Diffstat (limited to 'cmdline/apt-dump-solver.cc')
-rw-r--r-- | cmdline/apt-dump-solver.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmdline/apt-dump-solver.cc b/cmdline/apt-dump-solver.cc index 2e352931f..47b515be5 100644 --- a/cmdline/apt-dump-solver.cc +++ b/cmdline/apt-dump-solver.cc @@ -53,7 +53,8 @@ int main(int argc,const char *argv[]) /*{{{*/ return 0; } - unlink(filename); + if (strcmp(filename, "/dev/null") != 0) + unlink(filename); FileFd input, output; if (input.OpenDescriptor(STDIN_FILENO, FileFd::ReadOnly) == false || output.Open(filename, FileFd::WriteOnly | FileFd::Create | FileFd::Exclusive, 0600) == false || |