diff options
author | 2017-02-10 10:38:14 +0000 | |
---|---|---|
committer | 2017-02-10 15:36:03 +0000 | |
commit | d2cba292a6904d188d5a903d5baee3ba873b0ec5 (patch) | |
tree | c2c111650fe560f1cf1b3c5541c2cbfea70455f8 /src/test/cpp/util/dummy_test.cc | |
parent | da3099a0816f3c0e206a08962e5ffd77a0aac2de (diff) |
Bazel client, Windows, tests: `rm -rf TEST_TMPDIR`
Add test helpers to recursively delete the
TEST_TMPDIR in the TearDown method of tests, to
ensure each test sees a fresh temp directory.
Also add tests for these test helpers.
--
PiperOrigin-RevId: 147135561
MOS_MIGRATED_REVID=147135561
Diffstat (limited to 'src/test/cpp/util/dummy_test.cc')
-rw-r--r-- | src/test/cpp/util/dummy_test.cc | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/test/cpp/util/dummy_test.cc b/src/test/cpp/util/dummy_test.cc new file mode 100644 index 0000000000..388e986a81 --- /dev/null +++ b/src/test/cpp/util/dummy_test.cc @@ -0,0 +1,19 @@ +// Copyright 2017 The Bazel Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +#include <stdio.h> + +int main(int, char**) { + printf("INFO: This test is empty on this platform.\n"); + return 0; +} |